file objects: have you tried mozjs17 ?

Anonymous
2013-03-06
2013-05-30
  • Anonymous - 2013-03-06

    hello

    I'm working now with the people from mozilla at https://client00.chat.mibbit.com/?url=irc%3A%2F%2Firc.mozilla.org%2Fjsapi
    they told me to stop working on libjs-1.8.1 with the JS_HAS_FILE_OBJECT stuff & try the latest version, with what they call ctypes :

    "have you considered using a newer JS engine + ctypes for your file stuff?"
    Ctypes is a way of accessing native shared libraries via JS.
    So you'd use it to grab fopen, fread, or whatever from libc.so.

    they gave me this link for the laaaaatest mozjs libraries : http://people.mozilla.org/~sstangl/mozjs17.0.0.rc1.tar.gz
    here is the draft covering spidermonkey 17 : https://developer.mozilla.org/en-US/docs/SpiderMonkey/17

    do you think ctypes (if you know what it is) can be a way to open files with libjs (or whatever they call it now : mozjs), replacing the old JS_HAS_FILE_OBJECT method ?

     
  • Anonymous - 2013-03-06

    here is the top ctypes page : https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes

    they give another way to open files :

    To load a Library, use ctypes.open().
    

    they told me to ask you if you will enable ctypes in your JS build configuration (the option is -enable-ctypes) ?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks