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 LibJS: Rewrite most of Object for spec compliance :^) 2021-07-04 22:07:36 +01:00
class-basic.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
class-constructor.js LibJS: Allow methods in classes named 'async' 2022-02-18 13:47:47 +00:00
class-errors.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
class-expressions.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
class-getters.js LibJS: Allow methods in classes named 'async' 2022-02-18 13:47:47 +00:00
class-inheritance.js LibJS: Make class definition evaluation more spec like in ordering 2021-10-20 23:19:17 +01:00
class-methods.js LibJS: Keep PrivateEnvironment through NativeFunction calls 2022-03-09 18:35:27 +01:00
class-private-fields.js LibJS: Replace the verify in private identifier with a syntax error 2021-11-30 17:05:32 +00:00
class-public-fields.js LibJS: Allow defining class fields with "keyword" names 2021-11-30 17:05:32 +00:00
class-setters.js LibJS: Allow methods in classes named 'async' 2022-02-18 13:47:47 +00:00
class-static-getters.js LibJS: Allow methods in classes named 'async' 2022-02-18 13:47:47 +00:00
class-static-initializers.js LibJS: Allow super property lookup and new.target in static init blocks 2021-12-21 14:04:23 +01:00
class-static-setters.js LibJS: Allow methods in classes named 'async' 2022-02-18 13:47:47 +00:00
class-static.js LibJS: Keep PrivateEnvironment through NativeFunction calls 2022-03-09 18:35:27 +01:00
class-strict-mode.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00