fengzhao / fengzhao/pyv8

Built-in objects not accessible via the global object

Open
#74 6 comments 0 reactions 0 assignees View on GitHub
auto-migrated OpSys-All Priority-Medium Type-Defect
Dominant language
Python
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?

import PyV8

class Global(PyV8.JSClass):

def __init__(self):
self.s = self

def write(self, val):
print val

with PyV8.JSContext(Global()) as ctx:
ctx.eval("""
write(String)
write(s.String)
""")

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

Output is: None/Undefined
Should output: function String() { [native code] }

```

Original issue reported on code.google.com by `ATM1...@gmail.com` on 14 Feb 2011 at 4:00

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.