ladybird/Userland/Services
Timothy Flynn 2e71e300ee WebContent: Restore ability to use Inspector accessors like "$0"
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.
2024-10-30 08:50:31 +01:00
..
ImageDecoder LibIPC+Everywhere: Introduce an IPC Transport abstraction 2024-10-23 12:29:01 -06:00
RequestServer LibIPC+Everywhere: Introduce an IPC Transport abstraction 2024-10-23 12:29:01 -06:00
WebContent WebContent: Restore ability to use Inspector accessors like "$0" 2024-10-30 08:50:31 +01:00
WebDriver LibWeb+WebContent+WebDriver+UI: Make window min/maximize asynchronous 2024-10-29 11:03:20 +00:00
WebWorker LibIPC+Everywhere: Introduce an IPC Transport abstraction 2024-10-23 12:29:01 -06:00