ironm73 / pyv8

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

Support Unicode JavaScript Source #75

Closed GoogleCodeExporter closed 8 years ago

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

It looks like it is valid to have unicode characters in JavaScript 
source code, but the eval command is expecting a std::string it 
seems.

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

Python argument types in 
    JSContext.eval(JSContext, unicode, str) 
did not match C++ signature: 
    eval(CContext {lvalue}, std::string source, std::string name='', 
int line=-1, int col=-1, boost::python::api::object precompiled=None) 

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

Please provide any additional information below.

http://groups.google.com/group/pyv8/browse_thread/thread/14d22f068320aa9e?hl=en

So here is what I mean about unicode in JavaScript source: 
http://xahlee.org/js/ex/js_unicode.js 
(This is part of a test page to see if your JS engine has unicode 
support for var/function names). 

Original issue reported on code.google.com by flier...@gmail.com on 16 Feb 2011 at 2:05

GoogleCodeExporter commented 8 years ago
Now, PyV8 support to compile/execute the Unicode JavaScript Source, and get/set 
Unicode attribute from both Python/JavaScript sides.

Original comment by flier...@gmail.com on 19 Feb 2011 at 5:07

GoogleCodeExporter commented 8 years ago
sorry but i couldnt get unicode in js source to work. it ends in a seg fault !

Original comment by renjithf...@gmail.com on 20 Nov 2011 at 5:54