Skip to content

Commit

Permalink
chore: update test262
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Nov 24, 2023
1 parent 72c7bfb commit 8b1caba
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 53 deletions.
4 changes: 2 additions & 2 deletions tasks/coverage/codegen_test262.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
codegen_test262 Summary:
AST Parsed : 44738/44738 (100.00%)
Positive Passed: 44738/44738 (100.00%)
AST Parsed : 45668/45668 (100.00%)
Positive Passed: 45668/45668 (100.00%)
4 changes: 2 additions & 2 deletions tasks/coverage/minifier_test262.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
minifier_test262 Summary:
AST Parsed : 44738/44738 (100.00%)
Positive Passed: 44738/44738 (100.00%)
AST Parsed : 45668/45668 (100.00%)
Positive Passed: 45668/45668 (100.00%)
157 changes: 109 additions & 48 deletions tasks/coverage/parser_test262.snap
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parser_test262 Summary:
AST Parsed : 44161/44161 (100.00%)
Positive Passed: 44161/44161 (100.00%)
Negative Passed: 3918/3918 (100.00%)
AST Parsed : 45075/45075 (100.00%)
Positive Passed: 45075/45075 (100.00%)
Negative Passed: 3925/3925 (100.00%)
× '0'-prefixed octal literals and octal escape sequences are deprecated
╭─[annexB/language/expressions/template-literal/legacy-octal-escape-sequence-strict.js:17:1]
17 │
Expand Down Expand Up @@ -12971,18 +12971,25 @@ Negative Passed: 3918/3918 (100.00%)
· ─────────────────
╰────

× Keywords cannot contain escape characters
╭─[language/expressions/dynamic-import/escape-sequence-import.js:34:1]
34 │
35 │ im\u0070ort('./empty_FIXTURE.js');
· ───────────
╰────

× The keyword 'yield' is reserved
╭─[language/expressions/dynamic-import/2nd-param-yield-ident-invalid.js:18:1]
╭─[language/expressions/dynamic-import/import-assertions/2nd-param-yield-ident-invalid.js:18:1]
18 │
19 │ import('./empty_FIXTURE.js', yield);
· ─────
╰────

× Keywords cannot contain escape characters
╭─[language/expressions/dynamic-import/escape-sequence-import.js:34:1]
34
35im\u0070ort('./empty_FIXTURE.js');
· ───────────
× The keyword 'yield' is reserved
╭─[language/expressions/dynamic-import/import-attributes/2nd-param-yield-ident-invalid.js:18:1]
18
19import('./empty_FIXTURE.js', yield);
· ─────
╰────

× Cannot assign to this expression
Expand Down Expand Up @@ -18593,6 +18600,27 @@ Negative Passed: 3918/3918 (100.00%)
· ▲
╰────

× Keywords cannot contain escape characters
╭─[language/literals/boolean/false-with-unicode.js:19:1]
19 │
20 │ f\u{61}lse;
· ──────────
╰────

× Keywords cannot contain escape characters
╭─[language/literals/boolean/true-with-unicode.js:19:1]
19 │
20 │ tru\u{65};
· ─────────
╰────

× Keywords cannot contain escape characters
╭─[language/literals/null/null-with-unicode.js:19:1]
19 │
20 │ n\u{75}ll;
· ─────────
╰────

× '0'-prefixed octal literals and octal escape sequences are deprecated
╭─[language/literals/numeric/7.8.3-1gs.js:14:1]
14 │
Expand Down Expand Up @@ -19320,45 +19348,6 @@ Negative Passed: 3918/3918 (100.00%)
· ─
╰────

× Identifier `test262_a` has already been declared
╭─[language/module-code/early-dup-assert-key-export.js:20:1]
20 │ export * from './import-assertion-3_FIXTURE.js' assert {
21 │ test262_a: '',
· ────┬────
· ╰── `test262_a` has already been declared here
22 │ test262_b: '',
23 │ 'test262_\u0061': ''
· ────────┬───────
· ╰── It can not be redeclared here
24 │ };
╰────

× Identifier `test262_a` has already been declared
╭─[language/module-code/early-dup-assert-key-import-nobinding.js:21:1]
21 │ import './import-assertion-2_FIXTURE.js' assert {
22 │ test262_a: '',
· ────┬────
· ╰── `test262_a` has already been declared here
23 │ test262_b: '',
24 │ 'test262_\u0061': ''
· ────────┬───────
· ╰── It can not be redeclared here
25 │ };
╰────

× Identifier `test262_a` has already been declared
╭─[language/module-code/early-dup-assert-key-import-withbinding.js:21:1]
21 │ import x from './import-assertion-1_FIXTURE.js' assert {
22 │ test262_a: '',
· ────┬────
· ╰── `test262_a` has already been declared here
23 │ test262_b: '',
24 │ 'test262_\u0061': ''
· ────────┬───────
· ╰── It can not be redeclared here
25 │ };
╰────

× Duplicated export 'z'
╭─[language/module-code/early-dup-export-as-star-as.js:17:1]
17 │ var x;
Expand Down Expand Up @@ -19739,6 +19728,78 @@ Negative Passed: 3918/3918 (100.00%)
22 │
╰────

× Identifier `type` has already been declared
╭─[language/module-code/import-assertions/early-dup-assert-key-export.js:20:1]
20 │ export * from './import-assertion-3_FIXTURE.js' assert {
21 │ type: 'json',
· ──┬─
· ╰── `type` has already been declared here
22 │ 'typ\u0065': ''
· ─────┬─────
· ╰── It can not be redeclared here
23 │ };
╰────

× Identifier `type` has already been declared
╭─[language/module-code/import-assertions/early-dup-assert-key-import-nobinding.js:21:1]
21 │ import './import-assertion-2_FIXTURE.js' assert {
22 │ type: 'json',
· ──┬─
· ╰── `type` has already been declared here
23 │ 'typ\u0065': ''
· ─────┬─────
· ╰── It can not be redeclared here
24 │ };
╰────

× Identifier `type` has already been declared
╭─[language/module-code/import-assertions/early-dup-assert-key-import-withbinding.js:21:1]
21 │ import x from './import-assertion-1_FIXTURE.js' assert {
22 │ type: 'json',
· ──┬─
· ╰── `type` has already been declared here
23 │ 'typ\u0065': ''
· ─────┬─────
· ╰── It can not be redeclared here
24 │ };
╰────

× Identifier `type` has already been declared
╭─[language/module-code/import-attributes/early-dup-attribute-key-export.js:20:1]
20 │ export * from './import-attribute-3_FIXTURE.js' with {
21 │ type: 'json',
· ──┬─
· ╰── `type` has already been declared here
22 │ 'typ\u0065': ''
· ─────┬─────
· ╰── It can not be redeclared here
23 │ };
╰────

× Identifier `type` has already been declared
╭─[language/module-code/import-attributes/early-dup-attribute-key-import-nobinding.js:21:1]
21 │ import './import-attribute-2_FIXTURE.js' with {
22 │ type: 'json',
· ──┬─
· ╰── `type` has already been declared here
23 │ 'typ\u0065': ''
· ─────┬─────
· ╰── It can not be redeclared here
24 │ };
╰────

× Identifier `type` has already been declared
╭─[language/module-code/import-attributes/early-dup-attribute-key-import-withbinding.js:21:1]
21 │ import x from './import-attribute-1_FIXTURE.js' with {
22 │ type: 'json',
· ──┬─
· ╰── `type` has already been declared here
23 │ 'typ\u0065': ''
· ─────┬─────
· ╰── It can not be redeclared here
24 │ };
╰────

× Private identifier '#x' is not allowed outside class bodies
╭─[language/module-code/invalid-private-names-call-expression-bad-reference.js:39:1]
39 │
Expand Down
2 changes: 2 additions & 0 deletions tasks/coverage/src/test262.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ impl<T: Case> Suite<T> for Test262Suite<T> {

fn skip_test_path(&self, path: &Path) -> bool {
let path = path.to_string_lossy();
// ignore markdown files
path.ends_with(".md") ||
// ignore fixtures
path.contains("_FIXTURE") ||
// ignore regexp as we don't have a regexp parser for now
Expand Down
2 changes: 1 addition & 1 deletion tasks/coverage/test262
Submodule test262 updated 2208 files

0 comments on commit 8b1caba

Please sign in to comment.