mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 22:37:35 +00:00
LibJS: Add support for JSON modules
We now have one supported assertion: 'type' if that is 'json' we attempt to parse the module as JSON.
This commit is contained in:
parent
202de6ed25
commit
6b5c882af3
8 changed files with 277 additions and 24 deletions
7
Userland/Libraries/LibJS/Tests/modules/json-module.json
Normal file
7
Userland/Libraries/LibJS/Tests/modules/json-module.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"value": "value",
|
||||
"array": [1, 2, 3],
|
||||
"map": {
|
||||
"innerValue": "innerValue"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue