tychota / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

Global object should throw a reference error when access a nonexists field #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

import PyV8 
class Global(PyV8.JSClass): 
    def __init__(self): 
        pass 
with PyV8.JSContext(Global()) as ctx: 
    ctx.eval("""var x = z""") 
with PyV8.JSContext() as ctx: 
    ctx.eval("""var x = z""") 

What is the expected output? What do you see instead?

the global object should throw a reference error when access a nonexists field.

What version of the product are you using? On what operating system?

pyv8 v1.0 SVN trunk

Please provide any additional information below.

http://groups.google.com/group/pyv8/browse_thread/thread/41a6c18d0f9b1b1?hl=en

Original issue reported on code.google.com by flier...@gmail.com on 11 Dec 2010 at 1:55

GoogleCodeExporter commented 8 years ago
throw ReferenceError when access nonexists property of the global object

please verify the issue with SVN trunk r304 or later, thanks

Original comment by flier...@gmail.com on 11 Dec 2010 at 8:41