ladybird/Userland/Libraries/LibJS/Tests/classes
davidot bfedec6a98 LibJS: Keep PrivateEnvironment through NativeFunction calls
Previously the variable and lexical environments were already kept in a
NativeFunction call. However when we (try to) call a private method from
within an async function we go through async_block_start which sets up
a NativeFunction to call.
This is technically not exactly as the spec describes it, as that
requires you to actually "continue" the context. Since we don't have
that concept (yet) we use this as an implementation detail to access the
private environment from within a native function.

Note that this not allow general private environment access since most
things get blocked by the parser already.
2022-03-09 18:35:27 +01:00
..
class-advanced-extends.js
class-basic.js
class-constructor.js
class-errors.js
class-expressions.js
class-getters.js
class-inheritance.js
class-methods.js LibJS: Keep PrivateEnvironment through NativeFunction calls 2022-03-09 18:35:27 +01:00
class-private-fields.js
class-public-fields.js
class-setters.js
class-static-getters.js
class-static-initializers.js
class-static-setters.js
class-static.js LibJS: Keep PrivateEnvironment through NativeFunction calls 2022-03-09 18:35:27 +01:00
class-strict-mode.js