mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:37:35 +00:00
LibJS: Add using declaration support, RAII like operation in js
In this patch only top level and not the more complicated for loop using statements are supported. Also, as noted in the latest meeting of tc39 async parts of the spec are not stage 3 thus not included.
This commit is contained in:
parent
2c87ff2218
commit
541637e15a
15 changed files with 861 additions and 68 deletions
|
@ -206,6 +206,10 @@ describe("in- and exports", () => {
|
|||
test("exporting anonymous function", () => {
|
||||
expectModulePassed("./anon-func-decl-default-export.mjs");
|
||||
});
|
||||
|
||||
test("can have top level using declarations which trigger at the end of running a module", () => {
|
||||
expectModulePassed("./top-level-dispose.mjs");
|
||||
});
|
||||
});
|
||||
|
||||
describe("loops", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue