Giter Club home page Giter Club logo

pydermonkey's People

pydermonkey's Issues

Runtime size should be configurable

A fixed runtime size of 8 MB might be too small for some applications. Please 
make pydermonkey.Runtime() take the number of bytes as parameter with 8 MB 
being the default.

Original issue reported on code.google.com by [email protected] on 5 Oct 2010 at 12:22

Segfault when calling context.init_standard_classes() on 2 different objects with the same context

The following test reproduces the error:

    def testInitStandardClassesWorksTwice(self):
        cx = pydermonkey.Runtime().new_context()
        obj = cx.new_object()
        cx.init_standard_classes(obj)
        obj2 = cx.new_object()
        cx.init_standard_classes(obj2)

This results in the following error, followed by a segfault:

Assertion failure: !OBJ_GET_PARENT(cx, obj), at
spidermonkey-1.8.1pre/js/src/jsobj.cpp:3237

Original issue reported on code.google.com by [email protected] on 9 Sep 2009 at 3:14

Installation under FreeBSD 8.2 Fails...

During configuration the following comes up:
invoking make to create js-config script
rm -f js-config.tmp
sed < 
/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/js-confi
g.in > js-config.tmp \
        -e 's|@prefix@|/usr/local|' \
        -e 's|@exec_prefix@|/usr/local|' \
        -e 's|@includedir@|/usr/local/include|' \
        -e 's|@libdir@|/usr/local/lib|' \
        -e 's|@MOZILLA_VERSION@||' \
        -e 's|@LIBRARY_NAME@|mozjs|' \
        -e 's|@NSPR_CFLAGS@||' \
        -e 's|@JS_CONFIG_LIBS@| -lm  -lm -pthread |' \
        -e 's|@MOZ_JS_LIBS@|-L/usr/local/lib -lmozjs|' \
        && mv js-config.tmp js-config && chmod +x js-config
Running make.
"./config/autoconf.mk", line 68: Missing dependency operator
"./config/autoconf.mk", line 70: Need an operator
"./config/autoconf.mk", line 72: Need an operator
"Makefile", line 48: Need an operator
"Makefile", line 50: Need an operator
"Makefile", line 52: Need an operator
"Makefile", line 54: Need an operator
"Makefile", line 57: Need an operator
"Makefile", line 59: Need an operator
"Makefile", line 68: Need an operator
"Makefile", line 69: Need an operator
"Makefile", line 71: Need an operator
"Makefile", line 73: Need an operator
"Makefile", line 76: Need an operator
"Makefile", line 77: Need an operator
"Makefile", line 81: Need an operator
"Makefile", line 82: Need an operator
"Makefile", line 83: Missing dependency operator
"Makefile", line 85: Need an operator
"Makefile", line 86: Missing dependency operator
"Makefile", line 87: Need an operator
"Makefile", line 90: Need an operator
"Makefile", line 92: Need an operator
"Makefile", line 93: Need an operator
"Makefile", line 94: Need an operator
"Makefile", line 97: Missing dependency operator
"Makefile", line 99: Need an operator
"Makefile", line 153: Need an operator
"Makefile", line 156: Need an operator
"Makefile", line 211: Need an operator
"Makefile", line 238: Need an operator
"Makefile", line 242: Need an operator
"Makefile", line 244: Need an operator
"Makefile", line 246: Need an operator
"Makefile", line 247: Need an operator
"Makefile", line 249: Need an operator
"Makefile", line 254: Need an operator
"Makefile", line 256: Missing dependency operator
"Makefile", line 258: Need an operator
"Makefile", line 266: Missing dependency operator
"Makefile", line 268: Need an operator
"Makefile", line 270: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 52: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 54: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 56: Need an operator
"./config/autoconf.mk", line 68: Missing dependency operator
"./config/autoconf.mk", line 70: Need an operator
"./config/autoconf.mk", line 72: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 58: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 59: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 60: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 61: Could not find ./config/insure.mk
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 62: Need an operator
"/tmp/easy_install-yzqlNf/pydermonkey-0.0.6/spidermonkey-1.8.1pre/js/src/config/
config.mk", line 63: Need an operator
Error expanding embedded variable.
error: Setup script exited with 2

Seems like it doesn't like the Makefile. What tools you've been using?

Original issue reported on code.google.com by [email protected] on 14 Apr 2011 at 6:13

ScriptError should have file name and line number properties

The error message "Reference error: undefined is not defined" isn't very 
helpful - ScriptError should allow locating the error without wrapping the 
entire code into a try .. catch block and printing errors in JavaScript.

For reference, here are the properties of the JavaScript Error object:

https://developer.mozilla.org/en/JavaScript/Reference/global_objects/error

message, fileName and lineNumber are essential, name is a nice to have.

Original issue reported on code.google.com by [email protected] on 5 Oct 2010 at 12:27

Accessing array methods crashes

Any array created by cx.new_array_object() isn't very usable. If the JavaScript 
code tries to use any of its methods like array.join("\n") or array.pop() 
Python crashes. Work-around: create a real JavaScript array by evaluating "var 
array = [];", get the variable and do with it whatever you want.

Original issue reported on code.google.com by [email protected] on 5 Oct 2010 at 12:29

Add support for cross-language cyclic GC

As noted in the "Challenges" section of the current revision of the
documentation, detecting reference cycles between Python and JS-land isn't
currently supported, and as a result it's easy to introduce memory leaks
into a program that uses Pydermonkey.

Original issue reported on code.google.com by [email protected] on 5 Sep 2009 at 4:57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.