mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00
LibJS: Implement the import assertions proposal
The hard part of parsing them in import statements and calls was already done so this is just removing some check which threw before on assertions. And filtering the assertions based on the result of a new host hook.
This commit is contained in:
parent
e0e4ead2c8
commit
f568939568
11 changed files with 270 additions and 83 deletions
|
@ -0,0 +1,4 @@
|
|||
import * as self from "./import-with-assertions.mjs" assert { "key": "value", key2: "value2", default: "shouldwork" };
|
||||
import "./import-with-assertions.mjs" assert { "key": "value", key2: "value2", default: "shouldwork" };
|
||||
|
||||
export { passed } from "./module-with-default.mjs" assert { "key": "value", key2: "value2", default: "shouldwork" };
|
Loading…
Add table
Add a link
Reference in a new issue