Comment #5 on issue 1078 by [email protected]: Assert when changing the
prototype of the global object.
http://code.google.com/p/v8/issues/detail?id=1078
Maybe Global()->SetPrototype() could set the prototype to the right object.
Anyway, I have work arounded the problem by using Global()->GetPrototype()
everywhere in my code where i was handling with the global object.
But then i ran into this bug:
http://code.google.com/p/v8/issues/detail?id=1082
(Which i also workarounded by using some js code instead of using Equals)
But i still have the problem on some code that expect
function() { return this }
and compare the result of this function with the global object from the c++
api)
I would like an easy way to know if an object is the global object.
Anyway, this is getting off topic.
(I am working of changing the backend of an existing library to V8, and try
to do it in a compatible way)
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev