Package: nodejs
Version: 0.2.0-1
Severity: important

Software designed to run on node v0.2.0 expects that node will have a
certain version of libv8, namely the version included in the node
source tree. The version of node included in Debian Squeeze seems to
use the system libv8 which is incorrect and therefore node does not
function properly.

As an example, node v0.2.0 expects at least libv8 v2.3.5 where they
added "Object initialisers and dot-notation property access now allows
keywords.". An example of this feature not being present is as
follows:

yonkelt...@akiba:~ $ cat > deltest.js
var a = {delete: true};
yonkelt...@akiba:~ $ node deltest.js 

/home/yonkeltron/deltest.js:1
 a = {delete: tr
        ^^^^^^
SyntaxError: Unexpected token delete
    at Module._compile (node.js:457:37)
    at Module._loadScriptSync (node.js:468:10)
    at Module.loadSync (node.js:338:12)
    at Object.runMain (node.js:521:24)
    at node.js:751:10
yonkelt...@akiba:~ $ node --version
v0.2.0

The above error would not occur if node has a version of libv8 which
implemented ES5 property names.

Is this bug truly caused because node has been patched to use the
system v8? If so, the bug can be fixed by compiling node with the
included version of libv8 and all will be well.

No matter the cause, this is a major issue considerin that software
written for node can't always run on Debian's node if the version of
libv8 is incorrect.

Please let me know any additional information which might help
diagnose or solve this issue. Thanks!

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages nodejs depends on:
ii  libc-ares2                    1.7.3-1    library for asyncronous name resol
ii  libc6                         2.11.2-7   Embedded GNU C Library: Shared lib
ii  libev3                        1:3.9-1    high-performance event loop librar
ii  libgcc1                       1:4.4.5-8  GCC support library
ii  libssl0.9.8                   0.9.8o-3   SSL shared libraries
ii  libstdc++6                    4.4.5-8    The GNU Standard C++ Library v3
ii  libv8-2.2.24                  2.2.24-6   V8 JavaScript Engine

nodejs recommends no packages.

nodejs suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to