mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
2e71e300ee
We implement these built-in accessors via a lexical environment override on the inspected document's global scope. However, ClassicScript will parse the script we provide as a JS program, in which any evaluated bindings will be interpreted as global bindings. Our global binding lookup in the bytecode interpreter does not search the lexical env for the binding, thus scripts like "$0" fail to evaluate. Instead, we can create an ECMAScriptFunctionObject to evaluate scripts entered into the Inspector. These are not evaluated as JS programs, and thus any evaluated bindings are interpreted as non-global bindings. The lexical environment override we set will then be considered. |
||
---|---|---|
.. | ||
ImageDecoder | ||
RequestServer | ||
WebContent | ||
WebDriver | ||
WebWorker |