Status: Assigned
Owner: [email protected]
CC: [email protected], [email protected], [email protected]
Labels: Type-FeatureRequest Priority-Medium
New issue 3412 by [email protected]: Debug API to evaluate expression on
a given context with a given scope chain
http://code.google.com/p/v8/issues/detail?id=3412
DevTools needs an API to run eval() on a given context ("this" reference)
with a given scope chain.
Right now DevTools console uses a hack with injecting an internal console
API object onto the global object and evaluating the wrapped code:
with (__scopeChainForEval[0] || { __proto__: null}) { with
(__commandLineAPI || { __proto__: null }) {
/* the original expression */
} }
This hack has been a source of a bunch of problems, like:
- user's code may override __commandLineAPI
- line numbers are off by 1
- wrong syntax error messages: http://crbug.com/110163
- cannot evaluate "this.foo" on an async call frame (cannot inject "this"
reference)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.