[v8-users] Re: the alias of eval doesn't work in the 'with' scope

2009-09-08 Thread Mads Sig Ager
Aliased eval is handled in a special way. According to the specification it would be fine to completely disallow the use of aliased eval: Paragraph 15.1.2.1 of ECMA-262: "If value of the eval property is used in any way other than a direct call (that is, other than by the explicit use of its na

[v8-users] PyV8 first public beta v0.7.1 - Python Wrapper for Google V8 Javascript Engine

2009-09-08 Thread Flier Lu
http://code.google.com/p/pyv8/ PyV8 is a python wrapper for Google V8 engine, it act as a bridge between the Python and JavaScript objects, and support to hosting Google's v8 engine in a python script. We just release the first public beta (v0.7.1), and need your help to ensure its function work

[v8-users] Re: Using V8 with IE

2009-09-08 Thread Flier Lu
In fact, IE use a interlayer named ActiveScript which support several script languages, such as javascript, vbscript, perl and python etc. So, if you write a v8 based ActiveScript engine, and replace the standard javascript, I think it should work, even there maybe a lot of compatibility issues :

[v8-users] Date.parse return -28800000 for 1970.1.1

2009-09-08 Thread Flier Lu
ECMA-262 defined a Date.parse method to convert a string to a number In the current implementation (v1.3.9), the result like > Date.parse("1970.1.0") NaN > Date.parse("1970.1.1") -2880 > Date.parse("1970.1.2") 5760 On the other hand, the result of Date.parse("1970.1.1") is NaN in IE 8 a

[v8-users] the alias of eval doesn't work in the 'with' scope

2009-09-08 Thread Flier Lu
ECMA-262 define the with statement, which could add object to the front of the scope chain. For example, the following statements will return 3, because 'a' was defined in the with statement >with({a:1})eval("a+2") 3 In the current v8 implementation (v1.3.9), if we use a alias of eval method, t

[v8-users] Re: Binary data in ExternalAsciiStringResource

2009-09-08 Thread ryan dahl
On Tue, Sep 8, 2009 at 8:20 PM, Erik Corry wrote: > What you are looking for is Blob support, which is not done: > http://code.google.com/p/v8/issues/detail?id=270 It seems this would be a simpler way importing binary data into javascript. Is there any fundamental reason why it can't be done this

[v8-users] Re: building v8 on arm A8: does not support 'bkpt 0'

2009-09-08 Thread Rames
I think I went a little further understanding my issue: After commenting the cpu-arm.cc line 123asm volatile("bkpt 0"); to get rid of this unknown instruction I get the following error: src/arm/macro-assembler-arm.cc:62:2: error: #error "for thumb inter- working we require architecture v5t or

[v8-users] Re: building v8 on arm A8: does not support 'bkpt 0'

2009-09-08 Thread Rames
I think I went a little further understanding my issue: After commenting the cpu-arm.cc line 123asm volatile("bkpt 0"); to get rid of this unknown instruction I get the following error: src/arm/macro-assembler-arm.cc:62:2: error: #error "for thumb inter- working we require architecture v5t or

[v8-users] building v8 on arm A8: does not support 'bkpt 0'

2009-09-08 Thread A.Rames
I am trying to compile v8 shell example on my beagleboard, but the build meets fails ont the following error: g++ -o obj/release/arm/cpu-arm.o -c -Wall -Werror -W -Wno-unused- parameter -Wnon-virtual-dtor -pedantic -O3 -fomit-frame-pointer -fdata- sections -ffunction-sections -ansi -fno-rtti -fno

[v8-users] Re: Binary data in ExternalAsciiStringResource

2009-09-08 Thread Erik Corry
2009/9/8 ryan dahl : > Hello - > > I am trying to store binary in a string by using an > ExternalAsciiStringResource. There is a problem with values over 127. You are breaking the contract by putting non-ASCII in an ASCII string. There are multiple places in the code where we assume that this is

[v8-users] Binary data in ExternalAsciiStringResource

2009-09-08 Thread ryan dahl
Hello - I am trying to store binary in a string by using an ExternalAsciiStringResource. There is a problem with values over 127. It seems this might be solved a some cast somewhere inside of V8? Or is it more complicated than that? The problem is shown with the attached C++ program. It seems arb