Skip to content

Commit

Permalink
chore: update ecmascript tests (#345)
Browse files Browse the repository at this point in the history
## About this test suite

These tests came from [kangax compat
table](https://github.com/kangax/compat-table) which tests for specific
ES features.

In our case, we only need to test parsing and not actually execute the
tests.

## Updating

You can run the following script from this directory to update this test
suite.

```sh
curl -L -o data-common.json https://raw.githubusercontent.com/kangax/compat-table/gh-pages/data-common.json
curl -L -o data-es5.js https://raw.githubusercontent.com/kangax/compat-table/gh-pages/data-es5.js
curl -L -o data-es6.js https://raw.githubusercontent.com/kangax/compat-table/gh-pages/data-es6.js
curl -L -o data-es2016plus.js https://raw.githubusercontent.com/kangax/compat-table/gh-pages/data-es2016plus.js
curl -L -o data-esintl.js https://raw.githubusercontent.com/kangax/compat-table/gh-pages/data-esintl.js
curl -L -o data-esnext.js https://raw.githubusercontent.com/kangax/compat-table/gh-pages/data-esnext.js
```
  • Loading branch information
styfle authored Feb 13, 2023
1 parent 44e6bd0 commit c5ce0f8
Show file tree
Hide file tree
Showing 6 changed files with 2,470 additions and 2,516 deletions.
42 changes: 36 additions & 6 deletions test/ecmascript/data-common.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,50 @@
}
},
"graalvm": {
"es6flag": {
"val": "flagged",
"note_id": "graalvm-js-ecmascript-version-6",
"note_html": "Requires the <code>--js.ecmascript-version=6</code> flag."
},
"es2020flag": {
"val": "flagged",
"note_id": "graalvm-es2020",
"note_html": "The feature can be enabled via <code>--js.ecmascript-version=2020</code> flag"
"note_id": "graalvm-js-ecmascript-version-2020",
"note_html": "Requires the <code>--js.ecmascript-version=2020</code> flag."
},
"es2021flag": {
"val": "flagged",
"note_id": "graalvm-es2021",
"note_html": "The feature can be enabled via <code>--js.ecmascript-version=2021</code> flag"
"note_id": "graalvm-js-ecmascript-version-2021",
"note_html": "Requires the <code>--js.ecmascript-version=2021</code> flag."
},
"es2022flag": {
"val": "flagged",
"note_id": "graalvm-es2022",
"note_html": "The feature can be enabled via <code>--js.ecmascript-version=2022</code> flag"
"note_id": "graalvm-js-ecmascript-version-2022",
"note_html": "Requires the <code>--js.ecmascript-version=2022</code> flag."
},
"esStagingFlag": {
"val": "flagged",
"note_id": "graalvm-js-ecmascript-version-staging",
"note_html": "Requires the <code>--js.ecmascript-version=staging</code> flag."
},
"newSetMethodsFlag": {
"val": "flagged",
"note_id": "graalvm-experimental-options-js-new-set-methods",
"note_html": "Requires the <code>--experimental-options --js.new-set-methods</code> flags."
},
"v8CompatFlag": {
"val": "flagged",
"note_id": "graalvm-experimental-options-js-v8-compat",
"note_html": "Requires the <code>--experimental-options --js.v8-compat</code> flags."
},
"nashornCompatFlag": {
"val": "flagged",
"note_id": "graalvm-experimental-options-js-nashorn-compat",
"note_html": "Requires the <code>--experimental-options --js.nashorn-compat</code> flags."
},
"globalPropertyFlag": {
"val": "flagged",
"note_id": "graalvm-experimental-options-js-global-property",
"note_html": "Requires the <code>--experimental-options --js.global-property</code> flags."
}
},
"hermes": {
Expand Down
Loading

0 comments on commit c5ce0f8

Please sign in to comment.