Open GoogleCodeExporter opened 9 years ago
In the recent API changes, V8 engine has a lot of different behaviors :( I
would fix it soon
Original comment by flier...@gmail.com
on 5 Apr 2013 at 2:50
I did some research on this: such behaviour is correct since V8 creates
contexts as stacks and uses the latest one globally.
I made a workaround for this problem: I explicitly enter required context
whenever I need to do something:
https://github.com/emmetio/sublime-tern/blob/master/ternjs/context.py#L181
Works fine so far.
Original comment by serge....@gmail.com
on 5 Apr 2013 at 3:11
self._ctx = PyV8.JSContext() self._ctx.enter() self._ctx.eval('...JS source code...')
Original issue reported on code.google.com by
serge....@gmail.com
on 22 Mar 2013 at 5:34