From e858f918da776872a4350739144ac2f4f1e4193a Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Tue, 29 Mar 2016 11:55:02 -0400 Subject: [PATCH 1/3] Module code: Rename negative parsing tests --- ...ow-function.js => parse-err-decl-pos-export-arrow-function.js} | 0 ...-stmt-list.js => parse-err-decl-pos-export-block-stmt-list.js} | 0 ...port-block-stmt.js => parse-err-decl-pos-export-block-stmt.js} | 0 ...tic.js => parse-err-decl-pos-export-class-decl-meth-static.js} | 0 ...-decl-meth.js => parse-err-decl-pos-export-class-decl-meth.js} | 0 ... => parse-err-decl-pos-export-class-decl-method-gen-static.js} | 0 ...-gen.js => parse-err-decl-pos-export-class-decl-method-gen.js} | 0 ...js => parse-err-decl-pos-export-class-expr-meth-gen-static.js} | 0 ...th-gen.js => parse-err-decl-pos-export-class-expr-meth-gen.js} | 0 ...tic.js => parse-err-decl-pos-export-class-expr-meth-static.js} | 0 ...-expr-meth.js => parse-err-decl-pos-export-class-expr-meth.js} | 0 ...s-export-do-while.js => parse-err-decl-pos-export-do-while.js} | 0 ...export-for-const.js => parse-err-decl-pos-export-for-const.js} | 0 ...-for-in-const.js => parse-err-decl-pos-export-for-in-const.js} | 0 ...port-for-in-let.js => parse-err-decl-pos-export-for-in-let.js} | 0 ...port-for-in-lhs.js => parse-err-decl-pos-export-for-in-lhs.js} | 0 ...port-for-in-var.js => parse-err-decl-pos-export-for-in-var.js} | 0 ...pos-export-for-let.js => parse-err-decl-pos-export-for-let.js} | 0 ...pos-export-for-lhs.js => parse-err-decl-pos-export-for-lhs.js} | 0 ...-for-of-const.js => parse-err-decl-pos-export-for-of-const.js} | 0 ...port-for-of-let.js => parse-err-decl-pos-export-for-of-let.js} | 0 ...port-for-of-lhs.js => parse-err-decl-pos-export-for-of-lhs.js} | 0 ...port-for-of-var.js => parse-err-decl-pos-export-for-of-var.js} | 0 ...pos-export-for-var.js => parse-err-decl-pos-export-for-var.js} | 0 ...unction-decl.js => parse-err-decl-pos-export-function-decl.js} | 0 ...unction-expr.js => parse-err-decl-pos-export-function-expr.js} | 0 ...erator-decl.js => parse-err-decl-pos-export-generator-decl.js} | 0 ...erator-expr.js => parse-err-decl-pos-export-generator-expr.js} | 0 ...pos-export-if-else.js => parse-err-decl-pos-export-if-else.js} | 0 ...ecl-pos-export-if-if.js => parse-err-decl-pos-export-if-if.js} | 0 ...pos-export-labeled.js => parse-err-decl-pos-export-labeled.js} | 0 ...n-method.js => parse-err-decl-pos-export-object-gen-method.js} | 0 ...bject-getter.js => parse-err-decl-pos-export-object-getter.js} | 0 ...bject-method.js => parse-err-decl-pos-export-object-method.js} | 0 ...bject-setter.js => parse-err-decl-pos-export-object-setter.js} | 0 ...case-dflt.js => parse-err-decl-pos-export-switch-case-dflt.js} | 0 ...rt-switch-case.js => parse-err-decl-pos-export-switch-case.js} | 0 ...rt-switch-dftl.js => parse-err-decl-pos-export-switch-dftl.js} | 0 ...-finally.js => parse-err-decl-pos-export-try-catch-finally.js} | 0 ...export-try-catch.js => parse-err-decl-pos-export-try-catch.js} | 0 ...rt-try-finally.js => parse-err-decl-pos-export-try-finally.js} | 0 ...pos-export-try-try.js => parse-err-decl-pos-export-try-try.js} | 0 ...ecl-pos-export-while.js => parse-err-decl-pos-export-while.js} | 0 ...ow-function.js => parse-err-decl-pos-import-arrow-function.js} | 0 ...-stmt-list.js => parse-err-decl-pos-import-block-stmt-list.js} | 0 ...port-block-stmt.js => parse-err-decl-pos-import-block-stmt.js} | 0 ...tic.js => parse-err-decl-pos-import-class-decl-meth-static.js} | 0 ...-decl-meth.js => parse-err-decl-pos-import-class-decl-meth.js} | 0 ... => parse-err-decl-pos-import-class-decl-method-gen-static.js} | 0 ...-gen.js => parse-err-decl-pos-import-class-decl-method-gen.js} | 0 ...js => parse-err-decl-pos-import-class-expr-meth-gen-static.js} | 0 ...th-gen.js => parse-err-decl-pos-import-class-expr-meth-gen.js} | 0 ...tic.js => parse-err-decl-pos-import-class-expr-meth-static.js} | 0 ...-expr-meth.js => parse-err-decl-pos-import-class-expr-meth.js} | 0 ...s-import-do-while.js => parse-err-decl-pos-import-do-while.js} | 0 ...import-for-const.js => parse-err-decl-pos-import-for-const.js} | 0 ...-for-in-const.js => parse-err-decl-pos-import-for-in-const.js} | 0 ...port-for-in-let.js => parse-err-decl-pos-import-for-in-let.js} | 0 ...port-for-in-lhs.js => parse-err-decl-pos-import-for-in-lhs.js} | 0 ...port-for-in-var.js => parse-err-decl-pos-import-for-in-var.js} | 0 ...pos-import-for-let.js => parse-err-decl-pos-import-for-let.js} | 0 ...pos-import-for-lhs.js => parse-err-decl-pos-import-for-lhs.js} | 0 ...-for-of-const.js => parse-err-decl-pos-import-for-of-const.js} | 0 ...port-for-of-let.js => parse-err-decl-pos-import-for-of-let.js} | 0 ...port-for-of-lhs.js => parse-err-decl-pos-import-for-of-lhs.js} | 0 ...port-for-of-var.js => parse-err-decl-pos-import-for-of-var.js} | 0 ...pos-import-for-var.js => parse-err-decl-pos-import-for-var.js} | 0 ...unction-decl.js => parse-err-decl-pos-import-function-decl.js} | 0 ...unction-expr.js => parse-err-decl-pos-import-function-expr.js} | 0 ...erator-decl.js => parse-err-decl-pos-import-generator-decl.js} | 0 ...erator-expr.js => parse-err-decl-pos-import-generator-expr.js} | 0 ...pos-import-if-else.js => parse-err-decl-pos-import-if-else.js} | 0 ...ecl-pos-import-if-if.js => parse-err-decl-pos-import-if-if.js} | 0 ...pos-import-labeled.js => parse-err-decl-pos-import-labeled.js} | 0 ...n-method.js => parse-err-decl-pos-import-object-gen-method.js} | 0 ...bject-getter.js => parse-err-decl-pos-import-object-getter.js} | 0 ...bject-method.js => parse-err-decl-pos-import-object-method.js} | 0 ...bject-setter.js => parse-err-decl-pos-import-object-setter.js} | 0 ...case-dflt.js => parse-err-decl-pos-import-switch-case-dflt.js} | 0 ...rt-switch-case.js => parse-err-decl-pos-import-switch-case.js} | 0 ...rt-switch-dftl.js => parse-err-decl-pos-import-switch-dftl.js} | 0 ...-finally.js => parse-err-decl-pos-import-try-catch-finally.js} | 0 ...import-try-catch.js => parse-err-decl-pos-import-try-catch.js} | 0 ...rt-try-finally.js => parse-err-decl-pos-import-try-finally.js} | 0 ...pos-import-try-try.js => parse-err-decl-pos-import-try-try.js} | 0 ...ecl-pos-import-while.js => parse-err-decl-pos-import-while.js} | 0 86 files changed, 0 insertions(+), 0 deletions(-) rename test/language/module-code/{decl-pos-export-arrow-function.js => parse-err-decl-pos-export-arrow-function.js} (100%) rename test/language/module-code/{decl-pos-export-block-stmt-list.js => parse-err-decl-pos-export-block-stmt-list.js} (100%) rename test/language/module-code/{decl-pos-export-block-stmt.js => parse-err-decl-pos-export-block-stmt.js} (100%) rename test/language/module-code/{decl-pos-export-class-decl-meth-static.js => parse-err-decl-pos-export-class-decl-meth-static.js} (100%) rename test/language/module-code/{decl-pos-export-class-decl-meth.js => parse-err-decl-pos-export-class-decl-meth.js} (100%) rename test/language/module-code/{decl-pos-export-class-decl-method-gen-static.js => parse-err-decl-pos-export-class-decl-method-gen-static.js} (100%) rename test/language/module-code/{decl-pos-export-class-decl-method-gen.js => parse-err-decl-pos-export-class-decl-method-gen.js} (100%) rename test/language/module-code/{decl-pos-export-class-expr-meth-gen-static.js => parse-err-decl-pos-export-class-expr-meth-gen-static.js} (100%) rename test/language/module-code/{decl-pos-export-class-expr-meth-gen.js => parse-err-decl-pos-export-class-expr-meth-gen.js} (100%) rename test/language/module-code/{decl-pos-export-class-expr-meth-static.js => parse-err-decl-pos-export-class-expr-meth-static.js} (100%) rename test/language/module-code/{decl-pos-export-class-expr-meth.js => parse-err-decl-pos-export-class-expr-meth.js} (100%) rename test/language/module-code/{decl-pos-export-do-while.js => parse-err-decl-pos-export-do-while.js} (100%) rename test/language/module-code/{decl-pos-export-for-const.js => parse-err-decl-pos-export-for-const.js} (100%) rename test/language/module-code/{decl-pos-export-for-in-const.js => parse-err-decl-pos-export-for-in-const.js} (100%) rename test/language/module-code/{decl-pos-export-for-in-let.js => parse-err-decl-pos-export-for-in-let.js} (100%) rename test/language/module-code/{decl-pos-export-for-in-lhs.js => parse-err-decl-pos-export-for-in-lhs.js} (100%) rename test/language/module-code/{decl-pos-export-for-in-var.js => parse-err-decl-pos-export-for-in-var.js} (100%) rename test/language/module-code/{decl-pos-export-for-let.js => parse-err-decl-pos-export-for-let.js} (100%) rename test/language/module-code/{decl-pos-export-for-lhs.js => parse-err-decl-pos-export-for-lhs.js} (100%) rename test/language/module-code/{decl-pos-export-for-of-const.js => parse-err-decl-pos-export-for-of-const.js} (100%) rename test/language/module-code/{decl-pos-export-for-of-let.js => parse-err-decl-pos-export-for-of-let.js} (100%) rename test/language/module-code/{decl-pos-export-for-of-lhs.js => parse-err-decl-pos-export-for-of-lhs.js} (100%) rename test/language/module-code/{decl-pos-export-for-of-var.js => parse-err-decl-pos-export-for-of-var.js} (100%) rename test/language/module-code/{decl-pos-export-for-var.js => parse-err-decl-pos-export-for-var.js} (100%) rename test/language/module-code/{decl-pos-export-function-decl.js => parse-err-decl-pos-export-function-decl.js} (100%) rename test/language/module-code/{decl-pos-export-function-expr.js => parse-err-decl-pos-export-function-expr.js} (100%) rename test/language/module-code/{decl-pos-export-generator-decl.js => parse-err-decl-pos-export-generator-decl.js} (100%) rename test/language/module-code/{decl-pos-export-generator-expr.js => parse-err-decl-pos-export-generator-expr.js} (100%) rename test/language/module-code/{decl-pos-export-if-else.js => parse-err-decl-pos-export-if-else.js} (100%) rename test/language/module-code/{decl-pos-export-if-if.js => parse-err-decl-pos-export-if-if.js} (100%) rename test/language/module-code/{decl-pos-export-labeled.js => parse-err-decl-pos-export-labeled.js} (100%) rename test/language/module-code/{decl-pos-export-object-gen-method.js => parse-err-decl-pos-export-object-gen-method.js} (100%) rename test/language/module-code/{decl-pos-export-object-getter.js => parse-err-decl-pos-export-object-getter.js} (100%) rename test/language/module-code/{decl-pos-export-object-method.js => parse-err-decl-pos-export-object-method.js} (100%) rename test/language/module-code/{decl-pos-export-object-setter.js => parse-err-decl-pos-export-object-setter.js} (100%) rename test/language/module-code/{decl-pos-export-switch-case-dflt.js => parse-err-decl-pos-export-switch-case-dflt.js} (100%) rename test/language/module-code/{decl-pos-export-switch-case.js => parse-err-decl-pos-export-switch-case.js} (100%) rename test/language/module-code/{decl-pos-export-switch-dftl.js => parse-err-decl-pos-export-switch-dftl.js} (100%) rename test/language/module-code/{decl-pos-export-try-catch-finally.js => parse-err-decl-pos-export-try-catch-finally.js} (100%) rename test/language/module-code/{decl-pos-export-try-catch.js => parse-err-decl-pos-export-try-catch.js} (100%) rename test/language/module-code/{decl-pos-export-try-finally.js => parse-err-decl-pos-export-try-finally.js} (100%) rename test/language/module-code/{decl-pos-export-try-try.js => parse-err-decl-pos-export-try-try.js} (100%) rename test/language/module-code/{decl-pos-export-while.js => parse-err-decl-pos-export-while.js} (100%) rename test/language/module-code/{decl-pos-import-arrow-function.js => parse-err-decl-pos-import-arrow-function.js} (100%) rename test/language/module-code/{decl-pos-import-block-stmt-list.js => parse-err-decl-pos-import-block-stmt-list.js} (100%) rename test/language/module-code/{decl-pos-import-block-stmt.js => parse-err-decl-pos-import-block-stmt.js} (100%) rename test/language/module-code/{decl-pos-import-class-decl-meth-static.js => parse-err-decl-pos-import-class-decl-meth-static.js} (100%) rename test/language/module-code/{decl-pos-import-class-decl-meth.js => parse-err-decl-pos-import-class-decl-meth.js} (100%) rename test/language/module-code/{decl-pos-import-class-decl-method-gen-static.js => parse-err-decl-pos-import-class-decl-method-gen-static.js} (100%) rename test/language/module-code/{decl-pos-import-class-decl-method-gen.js => parse-err-decl-pos-import-class-decl-method-gen.js} (100%) rename test/language/module-code/{decl-pos-import-class-expr-meth-gen-static.js => parse-err-decl-pos-import-class-expr-meth-gen-static.js} (100%) rename test/language/module-code/{decl-pos-import-class-expr-meth-gen.js => parse-err-decl-pos-import-class-expr-meth-gen.js} (100%) rename test/language/module-code/{decl-pos-import-class-expr-meth-static.js => parse-err-decl-pos-import-class-expr-meth-static.js} (100%) rename test/language/module-code/{decl-pos-import-class-expr-meth.js => parse-err-decl-pos-import-class-expr-meth.js} (100%) rename test/language/module-code/{decl-pos-import-do-while.js => parse-err-decl-pos-import-do-while.js} (100%) rename test/language/module-code/{decl-pos-import-for-const.js => parse-err-decl-pos-import-for-const.js} (100%) rename test/language/module-code/{decl-pos-import-for-in-const.js => parse-err-decl-pos-import-for-in-const.js} (100%) rename test/language/module-code/{decl-pos-import-for-in-let.js => parse-err-decl-pos-import-for-in-let.js} (100%) rename test/language/module-code/{decl-pos-import-for-in-lhs.js => parse-err-decl-pos-import-for-in-lhs.js} (100%) rename test/language/module-code/{decl-pos-import-for-in-var.js => parse-err-decl-pos-import-for-in-var.js} (100%) rename test/language/module-code/{decl-pos-import-for-let.js => parse-err-decl-pos-import-for-let.js} (100%) rename test/language/module-code/{decl-pos-import-for-lhs.js => parse-err-decl-pos-import-for-lhs.js} (100%) rename test/language/module-code/{decl-pos-import-for-of-const.js => parse-err-decl-pos-import-for-of-const.js} (100%) rename test/language/module-code/{decl-pos-import-for-of-let.js => parse-err-decl-pos-import-for-of-let.js} (100%) rename test/language/module-code/{decl-pos-import-for-of-lhs.js => parse-err-decl-pos-import-for-of-lhs.js} (100%) rename test/language/module-code/{decl-pos-import-for-of-var.js => parse-err-decl-pos-import-for-of-var.js} (100%) rename test/language/module-code/{decl-pos-import-for-var.js => parse-err-decl-pos-import-for-var.js} (100%) rename test/language/module-code/{decl-pos-import-function-decl.js => parse-err-decl-pos-import-function-decl.js} (100%) rename test/language/module-code/{decl-pos-import-function-expr.js => parse-err-decl-pos-import-function-expr.js} (100%) rename test/language/module-code/{decl-pos-import-generator-decl.js => parse-err-decl-pos-import-generator-decl.js} (100%) rename test/language/module-code/{decl-pos-import-generator-expr.js => parse-err-decl-pos-import-generator-expr.js} (100%) rename test/language/module-code/{decl-pos-import-if-else.js => parse-err-decl-pos-import-if-else.js} (100%) rename test/language/module-code/{decl-pos-import-if-if.js => parse-err-decl-pos-import-if-if.js} (100%) rename test/language/module-code/{decl-pos-import-labeled.js => parse-err-decl-pos-import-labeled.js} (100%) rename test/language/module-code/{decl-pos-import-object-gen-method.js => parse-err-decl-pos-import-object-gen-method.js} (100%) rename test/language/module-code/{decl-pos-import-object-getter.js => parse-err-decl-pos-import-object-getter.js} (100%) rename test/language/module-code/{decl-pos-import-object-method.js => parse-err-decl-pos-import-object-method.js} (100%) rename test/language/module-code/{decl-pos-import-object-setter.js => parse-err-decl-pos-import-object-setter.js} (100%) rename test/language/module-code/{decl-pos-import-switch-case-dflt.js => parse-err-decl-pos-import-switch-case-dflt.js} (100%) rename test/language/module-code/{decl-pos-import-switch-case.js => parse-err-decl-pos-import-switch-case.js} (100%) rename test/language/module-code/{decl-pos-import-switch-dftl.js => parse-err-decl-pos-import-switch-dftl.js} (100%) rename test/language/module-code/{decl-pos-import-try-catch-finally.js => parse-err-decl-pos-import-try-catch-finally.js} (100%) rename test/language/module-code/{decl-pos-import-try-catch.js => parse-err-decl-pos-import-try-catch.js} (100%) rename test/language/module-code/{decl-pos-import-try-finally.js => parse-err-decl-pos-import-try-finally.js} (100%) rename test/language/module-code/{decl-pos-import-try-try.js => parse-err-decl-pos-import-try-try.js} (100%) rename test/language/module-code/{decl-pos-import-while.js => parse-err-decl-pos-import-while.js} (100%) diff --git a/test/language/module-code/decl-pos-export-arrow-function.js b/test/language/module-code/parse-err-decl-pos-export-arrow-function.js similarity index 100% rename from test/language/module-code/decl-pos-export-arrow-function.js rename to test/language/module-code/parse-err-decl-pos-export-arrow-function.js diff --git a/test/language/module-code/decl-pos-export-block-stmt-list.js b/test/language/module-code/parse-err-decl-pos-export-block-stmt-list.js similarity index 100% rename from test/language/module-code/decl-pos-export-block-stmt-list.js rename to test/language/module-code/parse-err-decl-pos-export-block-stmt-list.js diff --git a/test/language/module-code/decl-pos-export-block-stmt.js b/test/language/module-code/parse-err-decl-pos-export-block-stmt.js similarity index 100% rename from test/language/module-code/decl-pos-export-block-stmt.js rename to test/language/module-code/parse-err-decl-pos-export-block-stmt.js diff --git a/test/language/module-code/decl-pos-export-class-decl-meth-static.js b/test/language/module-code/parse-err-decl-pos-export-class-decl-meth-static.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-decl-meth-static.js rename to test/language/module-code/parse-err-decl-pos-export-class-decl-meth-static.js diff --git a/test/language/module-code/decl-pos-export-class-decl-meth.js b/test/language/module-code/parse-err-decl-pos-export-class-decl-meth.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-decl-meth.js rename to test/language/module-code/parse-err-decl-pos-export-class-decl-meth.js diff --git a/test/language/module-code/decl-pos-export-class-decl-method-gen-static.js b/test/language/module-code/parse-err-decl-pos-export-class-decl-method-gen-static.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-decl-method-gen-static.js rename to test/language/module-code/parse-err-decl-pos-export-class-decl-method-gen-static.js diff --git a/test/language/module-code/decl-pos-export-class-decl-method-gen.js b/test/language/module-code/parse-err-decl-pos-export-class-decl-method-gen.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-decl-method-gen.js rename to test/language/module-code/parse-err-decl-pos-export-class-decl-method-gen.js diff --git a/test/language/module-code/decl-pos-export-class-expr-meth-gen-static.js b/test/language/module-code/parse-err-decl-pos-export-class-expr-meth-gen-static.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-expr-meth-gen-static.js rename to test/language/module-code/parse-err-decl-pos-export-class-expr-meth-gen-static.js diff --git a/test/language/module-code/decl-pos-export-class-expr-meth-gen.js b/test/language/module-code/parse-err-decl-pos-export-class-expr-meth-gen.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-expr-meth-gen.js rename to test/language/module-code/parse-err-decl-pos-export-class-expr-meth-gen.js diff --git a/test/language/module-code/decl-pos-export-class-expr-meth-static.js b/test/language/module-code/parse-err-decl-pos-export-class-expr-meth-static.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-expr-meth-static.js rename to test/language/module-code/parse-err-decl-pos-export-class-expr-meth-static.js diff --git a/test/language/module-code/decl-pos-export-class-expr-meth.js b/test/language/module-code/parse-err-decl-pos-export-class-expr-meth.js similarity index 100% rename from test/language/module-code/decl-pos-export-class-expr-meth.js rename to test/language/module-code/parse-err-decl-pos-export-class-expr-meth.js diff --git a/test/language/module-code/decl-pos-export-do-while.js b/test/language/module-code/parse-err-decl-pos-export-do-while.js similarity index 100% rename from test/language/module-code/decl-pos-export-do-while.js rename to test/language/module-code/parse-err-decl-pos-export-do-while.js diff --git a/test/language/module-code/decl-pos-export-for-const.js b/test/language/module-code/parse-err-decl-pos-export-for-const.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-const.js rename to test/language/module-code/parse-err-decl-pos-export-for-const.js diff --git a/test/language/module-code/decl-pos-export-for-in-const.js b/test/language/module-code/parse-err-decl-pos-export-for-in-const.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-in-const.js rename to test/language/module-code/parse-err-decl-pos-export-for-in-const.js diff --git a/test/language/module-code/decl-pos-export-for-in-let.js b/test/language/module-code/parse-err-decl-pos-export-for-in-let.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-in-let.js rename to test/language/module-code/parse-err-decl-pos-export-for-in-let.js diff --git a/test/language/module-code/decl-pos-export-for-in-lhs.js b/test/language/module-code/parse-err-decl-pos-export-for-in-lhs.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-in-lhs.js rename to test/language/module-code/parse-err-decl-pos-export-for-in-lhs.js diff --git a/test/language/module-code/decl-pos-export-for-in-var.js b/test/language/module-code/parse-err-decl-pos-export-for-in-var.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-in-var.js rename to test/language/module-code/parse-err-decl-pos-export-for-in-var.js diff --git a/test/language/module-code/decl-pos-export-for-let.js b/test/language/module-code/parse-err-decl-pos-export-for-let.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-let.js rename to test/language/module-code/parse-err-decl-pos-export-for-let.js diff --git a/test/language/module-code/decl-pos-export-for-lhs.js b/test/language/module-code/parse-err-decl-pos-export-for-lhs.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-lhs.js rename to test/language/module-code/parse-err-decl-pos-export-for-lhs.js diff --git a/test/language/module-code/decl-pos-export-for-of-const.js b/test/language/module-code/parse-err-decl-pos-export-for-of-const.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-of-const.js rename to test/language/module-code/parse-err-decl-pos-export-for-of-const.js diff --git a/test/language/module-code/decl-pos-export-for-of-let.js b/test/language/module-code/parse-err-decl-pos-export-for-of-let.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-of-let.js rename to test/language/module-code/parse-err-decl-pos-export-for-of-let.js diff --git a/test/language/module-code/decl-pos-export-for-of-lhs.js b/test/language/module-code/parse-err-decl-pos-export-for-of-lhs.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-of-lhs.js rename to test/language/module-code/parse-err-decl-pos-export-for-of-lhs.js diff --git a/test/language/module-code/decl-pos-export-for-of-var.js b/test/language/module-code/parse-err-decl-pos-export-for-of-var.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-of-var.js rename to test/language/module-code/parse-err-decl-pos-export-for-of-var.js diff --git a/test/language/module-code/decl-pos-export-for-var.js b/test/language/module-code/parse-err-decl-pos-export-for-var.js similarity index 100% rename from test/language/module-code/decl-pos-export-for-var.js rename to test/language/module-code/parse-err-decl-pos-export-for-var.js diff --git a/test/language/module-code/decl-pos-export-function-decl.js b/test/language/module-code/parse-err-decl-pos-export-function-decl.js similarity index 100% rename from test/language/module-code/decl-pos-export-function-decl.js rename to test/language/module-code/parse-err-decl-pos-export-function-decl.js diff --git a/test/language/module-code/decl-pos-export-function-expr.js b/test/language/module-code/parse-err-decl-pos-export-function-expr.js similarity index 100% rename from test/language/module-code/decl-pos-export-function-expr.js rename to test/language/module-code/parse-err-decl-pos-export-function-expr.js diff --git a/test/language/module-code/decl-pos-export-generator-decl.js b/test/language/module-code/parse-err-decl-pos-export-generator-decl.js similarity index 100% rename from test/language/module-code/decl-pos-export-generator-decl.js rename to test/language/module-code/parse-err-decl-pos-export-generator-decl.js diff --git a/test/language/module-code/decl-pos-export-generator-expr.js b/test/language/module-code/parse-err-decl-pos-export-generator-expr.js similarity index 100% rename from test/language/module-code/decl-pos-export-generator-expr.js rename to test/language/module-code/parse-err-decl-pos-export-generator-expr.js diff --git a/test/language/module-code/decl-pos-export-if-else.js b/test/language/module-code/parse-err-decl-pos-export-if-else.js similarity index 100% rename from test/language/module-code/decl-pos-export-if-else.js rename to test/language/module-code/parse-err-decl-pos-export-if-else.js diff --git a/test/language/module-code/decl-pos-export-if-if.js b/test/language/module-code/parse-err-decl-pos-export-if-if.js similarity index 100% rename from test/language/module-code/decl-pos-export-if-if.js rename to test/language/module-code/parse-err-decl-pos-export-if-if.js diff --git a/test/language/module-code/decl-pos-export-labeled.js b/test/language/module-code/parse-err-decl-pos-export-labeled.js similarity index 100% rename from test/language/module-code/decl-pos-export-labeled.js rename to test/language/module-code/parse-err-decl-pos-export-labeled.js diff --git a/test/language/module-code/decl-pos-export-object-gen-method.js b/test/language/module-code/parse-err-decl-pos-export-object-gen-method.js similarity index 100% rename from test/language/module-code/decl-pos-export-object-gen-method.js rename to test/language/module-code/parse-err-decl-pos-export-object-gen-method.js diff --git a/test/language/module-code/decl-pos-export-object-getter.js b/test/language/module-code/parse-err-decl-pos-export-object-getter.js similarity index 100% rename from test/language/module-code/decl-pos-export-object-getter.js rename to test/language/module-code/parse-err-decl-pos-export-object-getter.js diff --git a/test/language/module-code/decl-pos-export-object-method.js b/test/language/module-code/parse-err-decl-pos-export-object-method.js similarity index 100% rename from test/language/module-code/decl-pos-export-object-method.js rename to test/language/module-code/parse-err-decl-pos-export-object-method.js diff --git a/test/language/module-code/decl-pos-export-object-setter.js b/test/language/module-code/parse-err-decl-pos-export-object-setter.js similarity index 100% rename from test/language/module-code/decl-pos-export-object-setter.js rename to test/language/module-code/parse-err-decl-pos-export-object-setter.js diff --git a/test/language/module-code/decl-pos-export-switch-case-dflt.js b/test/language/module-code/parse-err-decl-pos-export-switch-case-dflt.js similarity index 100% rename from test/language/module-code/decl-pos-export-switch-case-dflt.js rename to test/language/module-code/parse-err-decl-pos-export-switch-case-dflt.js diff --git a/test/language/module-code/decl-pos-export-switch-case.js b/test/language/module-code/parse-err-decl-pos-export-switch-case.js similarity index 100% rename from test/language/module-code/decl-pos-export-switch-case.js rename to test/language/module-code/parse-err-decl-pos-export-switch-case.js diff --git a/test/language/module-code/decl-pos-export-switch-dftl.js b/test/language/module-code/parse-err-decl-pos-export-switch-dftl.js similarity index 100% rename from test/language/module-code/decl-pos-export-switch-dftl.js rename to test/language/module-code/parse-err-decl-pos-export-switch-dftl.js diff --git a/test/language/module-code/decl-pos-export-try-catch-finally.js b/test/language/module-code/parse-err-decl-pos-export-try-catch-finally.js similarity index 100% rename from test/language/module-code/decl-pos-export-try-catch-finally.js rename to test/language/module-code/parse-err-decl-pos-export-try-catch-finally.js diff --git a/test/language/module-code/decl-pos-export-try-catch.js b/test/language/module-code/parse-err-decl-pos-export-try-catch.js similarity index 100% rename from test/language/module-code/decl-pos-export-try-catch.js rename to test/language/module-code/parse-err-decl-pos-export-try-catch.js diff --git a/test/language/module-code/decl-pos-export-try-finally.js b/test/language/module-code/parse-err-decl-pos-export-try-finally.js similarity index 100% rename from test/language/module-code/decl-pos-export-try-finally.js rename to test/language/module-code/parse-err-decl-pos-export-try-finally.js diff --git a/test/language/module-code/decl-pos-export-try-try.js b/test/language/module-code/parse-err-decl-pos-export-try-try.js similarity index 100% rename from test/language/module-code/decl-pos-export-try-try.js rename to test/language/module-code/parse-err-decl-pos-export-try-try.js diff --git a/test/language/module-code/decl-pos-export-while.js b/test/language/module-code/parse-err-decl-pos-export-while.js similarity index 100% rename from test/language/module-code/decl-pos-export-while.js rename to test/language/module-code/parse-err-decl-pos-export-while.js diff --git a/test/language/module-code/decl-pos-import-arrow-function.js b/test/language/module-code/parse-err-decl-pos-import-arrow-function.js similarity index 100% rename from test/language/module-code/decl-pos-import-arrow-function.js rename to test/language/module-code/parse-err-decl-pos-import-arrow-function.js diff --git a/test/language/module-code/decl-pos-import-block-stmt-list.js b/test/language/module-code/parse-err-decl-pos-import-block-stmt-list.js similarity index 100% rename from test/language/module-code/decl-pos-import-block-stmt-list.js rename to test/language/module-code/parse-err-decl-pos-import-block-stmt-list.js diff --git a/test/language/module-code/decl-pos-import-block-stmt.js b/test/language/module-code/parse-err-decl-pos-import-block-stmt.js similarity index 100% rename from test/language/module-code/decl-pos-import-block-stmt.js rename to test/language/module-code/parse-err-decl-pos-import-block-stmt.js diff --git a/test/language/module-code/decl-pos-import-class-decl-meth-static.js b/test/language/module-code/parse-err-decl-pos-import-class-decl-meth-static.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-decl-meth-static.js rename to test/language/module-code/parse-err-decl-pos-import-class-decl-meth-static.js diff --git a/test/language/module-code/decl-pos-import-class-decl-meth.js b/test/language/module-code/parse-err-decl-pos-import-class-decl-meth.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-decl-meth.js rename to test/language/module-code/parse-err-decl-pos-import-class-decl-meth.js diff --git a/test/language/module-code/decl-pos-import-class-decl-method-gen-static.js b/test/language/module-code/parse-err-decl-pos-import-class-decl-method-gen-static.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-decl-method-gen-static.js rename to test/language/module-code/parse-err-decl-pos-import-class-decl-method-gen-static.js diff --git a/test/language/module-code/decl-pos-import-class-decl-method-gen.js b/test/language/module-code/parse-err-decl-pos-import-class-decl-method-gen.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-decl-method-gen.js rename to test/language/module-code/parse-err-decl-pos-import-class-decl-method-gen.js diff --git a/test/language/module-code/decl-pos-import-class-expr-meth-gen-static.js b/test/language/module-code/parse-err-decl-pos-import-class-expr-meth-gen-static.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-expr-meth-gen-static.js rename to test/language/module-code/parse-err-decl-pos-import-class-expr-meth-gen-static.js diff --git a/test/language/module-code/decl-pos-import-class-expr-meth-gen.js b/test/language/module-code/parse-err-decl-pos-import-class-expr-meth-gen.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-expr-meth-gen.js rename to test/language/module-code/parse-err-decl-pos-import-class-expr-meth-gen.js diff --git a/test/language/module-code/decl-pos-import-class-expr-meth-static.js b/test/language/module-code/parse-err-decl-pos-import-class-expr-meth-static.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-expr-meth-static.js rename to test/language/module-code/parse-err-decl-pos-import-class-expr-meth-static.js diff --git a/test/language/module-code/decl-pos-import-class-expr-meth.js b/test/language/module-code/parse-err-decl-pos-import-class-expr-meth.js similarity index 100% rename from test/language/module-code/decl-pos-import-class-expr-meth.js rename to test/language/module-code/parse-err-decl-pos-import-class-expr-meth.js diff --git a/test/language/module-code/decl-pos-import-do-while.js b/test/language/module-code/parse-err-decl-pos-import-do-while.js similarity index 100% rename from test/language/module-code/decl-pos-import-do-while.js rename to test/language/module-code/parse-err-decl-pos-import-do-while.js diff --git a/test/language/module-code/decl-pos-import-for-const.js b/test/language/module-code/parse-err-decl-pos-import-for-const.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-const.js rename to test/language/module-code/parse-err-decl-pos-import-for-const.js diff --git a/test/language/module-code/decl-pos-import-for-in-const.js b/test/language/module-code/parse-err-decl-pos-import-for-in-const.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-in-const.js rename to test/language/module-code/parse-err-decl-pos-import-for-in-const.js diff --git a/test/language/module-code/decl-pos-import-for-in-let.js b/test/language/module-code/parse-err-decl-pos-import-for-in-let.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-in-let.js rename to test/language/module-code/parse-err-decl-pos-import-for-in-let.js diff --git a/test/language/module-code/decl-pos-import-for-in-lhs.js b/test/language/module-code/parse-err-decl-pos-import-for-in-lhs.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-in-lhs.js rename to test/language/module-code/parse-err-decl-pos-import-for-in-lhs.js diff --git a/test/language/module-code/decl-pos-import-for-in-var.js b/test/language/module-code/parse-err-decl-pos-import-for-in-var.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-in-var.js rename to test/language/module-code/parse-err-decl-pos-import-for-in-var.js diff --git a/test/language/module-code/decl-pos-import-for-let.js b/test/language/module-code/parse-err-decl-pos-import-for-let.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-let.js rename to test/language/module-code/parse-err-decl-pos-import-for-let.js diff --git a/test/language/module-code/decl-pos-import-for-lhs.js b/test/language/module-code/parse-err-decl-pos-import-for-lhs.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-lhs.js rename to test/language/module-code/parse-err-decl-pos-import-for-lhs.js diff --git a/test/language/module-code/decl-pos-import-for-of-const.js b/test/language/module-code/parse-err-decl-pos-import-for-of-const.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-of-const.js rename to test/language/module-code/parse-err-decl-pos-import-for-of-const.js diff --git a/test/language/module-code/decl-pos-import-for-of-let.js b/test/language/module-code/parse-err-decl-pos-import-for-of-let.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-of-let.js rename to test/language/module-code/parse-err-decl-pos-import-for-of-let.js diff --git a/test/language/module-code/decl-pos-import-for-of-lhs.js b/test/language/module-code/parse-err-decl-pos-import-for-of-lhs.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-of-lhs.js rename to test/language/module-code/parse-err-decl-pos-import-for-of-lhs.js diff --git a/test/language/module-code/decl-pos-import-for-of-var.js b/test/language/module-code/parse-err-decl-pos-import-for-of-var.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-of-var.js rename to test/language/module-code/parse-err-decl-pos-import-for-of-var.js diff --git a/test/language/module-code/decl-pos-import-for-var.js b/test/language/module-code/parse-err-decl-pos-import-for-var.js similarity index 100% rename from test/language/module-code/decl-pos-import-for-var.js rename to test/language/module-code/parse-err-decl-pos-import-for-var.js diff --git a/test/language/module-code/decl-pos-import-function-decl.js b/test/language/module-code/parse-err-decl-pos-import-function-decl.js similarity index 100% rename from test/language/module-code/decl-pos-import-function-decl.js rename to test/language/module-code/parse-err-decl-pos-import-function-decl.js diff --git a/test/language/module-code/decl-pos-import-function-expr.js b/test/language/module-code/parse-err-decl-pos-import-function-expr.js similarity index 100% rename from test/language/module-code/decl-pos-import-function-expr.js rename to test/language/module-code/parse-err-decl-pos-import-function-expr.js diff --git a/test/language/module-code/decl-pos-import-generator-decl.js b/test/language/module-code/parse-err-decl-pos-import-generator-decl.js similarity index 100% rename from test/language/module-code/decl-pos-import-generator-decl.js rename to test/language/module-code/parse-err-decl-pos-import-generator-decl.js diff --git a/test/language/module-code/decl-pos-import-generator-expr.js b/test/language/module-code/parse-err-decl-pos-import-generator-expr.js similarity index 100% rename from test/language/module-code/decl-pos-import-generator-expr.js rename to test/language/module-code/parse-err-decl-pos-import-generator-expr.js diff --git a/test/language/module-code/decl-pos-import-if-else.js b/test/language/module-code/parse-err-decl-pos-import-if-else.js similarity index 100% rename from test/language/module-code/decl-pos-import-if-else.js rename to test/language/module-code/parse-err-decl-pos-import-if-else.js diff --git a/test/language/module-code/decl-pos-import-if-if.js b/test/language/module-code/parse-err-decl-pos-import-if-if.js similarity index 100% rename from test/language/module-code/decl-pos-import-if-if.js rename to test/language/module-code/parse-err-decl-pos-import-if-if.js diff --git a/test/language/module-code/decl-pos-import-labeled.js b/test/language/module-code/parse-err-decl-pos-import-labeled.js similarity index 100% rename from test/language/module-code/decl-pos-import-labeled.js rename to test/language/module-code/parse-err-decl-pos-import-labeled.js diff --git a/test/language/module-code/decl-pos-import-object-gen-method.js b/test/language/module-code/parse-err-decl-pos-import-object-gen-method.js similarity index 100% rename from test/language/module-code/decl-pos-import-object-gen-method.js rename to test/language/module-code/parse-err-decl-pos-import-object-gen-method.js diff --git a/test/language/module-code/decl-pos-import-object-getter.js b/test/language/module-code/parse-err-decl-pos-import-object-getter.js similarity index 100% rename from test/language/module-code/decl-pos-import-object-getter.js rename to test/language/module-code/parse-err-decl-pos-import-object-getter.js diff --git a/test/language/module-code/decl-pos-import-object-method.js b/test/language/module-code/parse-err-decl-pos-import-object-method.js similarity index 100% rename from test/language/module-code/decl-pos-import-object-method.js rename to test/language/module-code/parse-err-decl-pos-import-object-method.js diff --git a/test/language/module-code/decl-pos-import-object-setter.js b/test/language/module-code/parse-err-decl-pos-import-object-setter.js similarity index 100% rename from test/language/module-code/decl-pos-import-object-setter.js rename to test/language/module-code/parse-err-decl-pos-import-object-setter.js diff --git a/test/language/module-code/decl-pos-import-switch-case-dflt.js b/test/language/module-code/parse-err-decl-pos-import-switch-case-dflt.js similarity index 100% rename from test/language/module-code/decl-pos-import-switch-case-dflt.js rename to test/language/module-code/parse-err-decl-pos-import-switch-case-dflt.js diff --git a/test/language/module-code/decl-pos-import-switch-case.js b/test/language/module-code/parse-err-decl-pos-import-switch-case.js similarity index 100% rename from test/language/module-code/decl-pos-import-switch-case.js rename to test/language/module-code/parse-err-decl-pos-import-switch-case.js diff --git a/test/language/module-code/decl-pos-import-switch-dftl.js b/test/language/module-code/parse-err-decl-pos-import-switch-dftl.js similarity index 100% rename from test/language/module-code/decl-pos-import-switch-dftl.js rename to test/language/module-code/parse-err-decl-pos-import-switch-dftl.js diff --git a/test/language/module-code/decl-pos-import-try-catch-finally.js b/test/language/module-code/parse-err-decl-pos-import-try-catch-finally.js similarity index 100% rename from test/language/module-code/decl-pos-import-try-catch-finally.js rename to test/language/module-code/parse-err-decl-pos-import-try-catch-finally.js diff --git a/test/language/module-code/decl-pos-import-try-catch.js b/test/language/module-code/parse-err-decl-pos-import-try-catch.js similarity index 100% rename from test/language/module-code/decl-pos-import-try-catch.js rename to test/language/module-code/parse-err-decl-pos-import-try-catch.js diff --git a/test/language/module-code/decl-pos-import-try-finally.js b/test/language/module-code/parse-err-decl-pos-import-try-finally.js similarity index 100% rename from test/language/module-code/decl-pos-import-try-finally.js rename to test/language/module-code/parse-err-decl-pos-import-try-finally.js diff --git a/test/language/module-code/decl-pos-import-try-try.js b/test/language/module-code/parse-err-decl-pos-import-try-try.js similarity index 100% rename from test/language/module-code/decl-pos-import-try-try.js rename to test/language/module-code/parse-err-decl-pos-import-try-try.js diff --git a/test/language/module-code/decl-pos-import-while.js b/test/language/module-code/parse-err-decl-pos-import-while.js similarity index 100% rename from test/language/module-code/decl-pos-import-while.js rename to test/language/module-code/parse-err-decl-pos-import-while.js From 355ba1ba835d934e74d78e9bc5c4181c7540de81 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Tue, 29 Mar 2016 11:55:42 -0400 Subject: [PATCH 2/3] Module code: Remove redundant test --- .../module-code/import-as-stmt-list-item.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 test/language/module-code/import-as-stmt-list-item.js diff --git a/test/language/module-code/import-as-stmt-list-item.js b/test/language/module-code/import-as-stmt-list-item.js deleted file mode 100644 index 11b9b754b9..0000000000 --- a/test/language/module-code/import-as-stmt-list-item.js +++ /dev/null @@ -1,14 +0,0 @@ -// Copyright (C) 2015 the V8 project authors. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. -/*--- -es6id: 15.2 -description: > - An ImportDeclaration is not a valid StatementListItem and is therefore - restricted from appearing within statements in a ModuleBody. -flags: [module] -negative: SyntaxError ----*/ - -{ - import { x } from 'y'; -} From f817f108585bf9443b9893c9d4723091abbc9a98 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Tue, 29 Mar 2016 11:49:29 -0400 Subject: [PATCH 3/3] Module code: syntax validation Assert that module code is parsed as specified. --- .../parse-err-export-dflt-const.js | 11 ++++++ .../module-code/parse-err-export-dflt-expr.js | 21 ++++++++++ .../module-code/parse-err-export-dflt-let.js | 11 ++++++ .../module-code/parse-err-export-dflt-var.js | 11 ++++++ .../module-code/parse-err-hoist-lex-fun.js | 21 ++++++++++ .../module-code/parse-err-hoist-lex-gen.js | 22 +++++++++++ .../parse-err-invoke-anon-fun-decl.js | 21 ++++++++++ .../parse-err-invoke-anon-gen-decl.js | 22 +++++++++++ .../module-code/parse-err-reference.js | 18 +++++++++ .../module-code/parse-err-semi-dflt-expr.js | 22 +++++++++++ .../parse-err-semi-export-clause-from.js | 22 +++++++++++ .../parse-err-semi-export-clause.js | 22 +++++++++++ .../module-code/parse-err-semi-export-star.js | 21 ++++++++++ test/language/module-code/parse-err-syntax.js | 18 +++++++++ .../module-code/parse-export-empty.js | 38 +++++++++++++++++++ 15 files changed, 301 insertions(+) create mode 100644 test/language/module-code/parse-err-export-dflt-const.js create mode 100644 test/language/module-code/parse-err-export-dflt-expr.js create mode 100644 test/language/module-code/parse-err-export-dflt-let.js create mode 100644 test/language/module-code/parse-err-export-dflt-var.js create mode 100644 test/language/module-code/parse-err-hoist-lex-fun.js create mode 100644 test/language/module-code/parse-err-hoist-lex-gen.js create mode 100644 test/language/module-code/parse-err-invoke-anon-fun-decl.js create mode 100644 test/language/module-code/parse-err-invoke-anon-gen-decl.js create mode 100644 test/language/module-code/parse-err-reference.js create mode 100644 test/language/module-code/parse-err-semi-dflt-expr.js create mode 100644 test/language/module-code/parse-err-semi-export-clause-from.js create mode 100644 test/language/module-code/parse-err-semi-export-clause.js create mode 100644 test/language/module-code/parse-err-semi-export-star.js create mode 100644 test/language/module-code/parse-err-syntax.js create mode 100644 test/language/module-code/parse-export-empty.js diff --git a/test/language/module-code/parse-err-export-dflt-const.js b/test/language/module-code/parse-err-export-dflt-const.js new file mode 100644 index 0000000000..ca886476e1 --- /dev/null +++ b/test/language/module-code/parse-err-export-dflt-const.js @@ -0,0 +1,11 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-exports +es6id: 15.2.3 +description: The default export may not be a LexicalDeclaration (const) +flags: [module] +negative: SyntaxError +---*/ + +export default const x = null; diff --git a/test/language/module-code/parse-err-export-dflt-expr.js b/test/language/module-code/parse-err-export-dflt-expr.js new file mode 100644 index 0000000000..61c05e4913 --- /dev/null +++ b/test/language/module-code/parse-err-export-dflt-expr.js @@ -0,0 +1,21 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Expression not permitted in AssignmentExpression position +esid: sec-exports +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; +negative: SyntaxError +flags: [module] +---*/ + +export default null, null; diff --git a/test/language/module-code/parse-err-export-dflt-let.js b/test/language/module-code/parse-err-export-dflt-let.js new file mode 100644 index 0000000000..cb3ae054b0 --- /dev/null +++ b/test/language/module-code/parse-err-export-dflt-let.js @@ -0,0 +1,11 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-exports +es6id: 15.2.3 +description: The default export may not be a LexicalDeclaration (let) +flags: [module] +negative: SyntaxError +---*/ + +export default let x; diff --git a/test/language/module-code/parse-err-export-dflt-var.js b/test/language/module-code/parse-err-export-dflt-var.js new file mode 100644 index 0000000000..5cd5102168 --- /dev/null +++ b/test/language/module-code/parse-err-export-dflt-var.js @@ -0,0 +1,11 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +esid: sec-exports +es6id: 15.2.3 +description: The default export may not be a VariableStatement +flags: [module] +negative: SyntaxError +---*/ + +export default var x; diff --git a/test/language/module-code/parse-err-hoist-lex-fun.js b/test/language/module-code/parse-err-hoist-lex-fun.js new file mode 100644 index 0000000000..98c95ae674 --- /dev/null +++ b/test/language/module-code/parse-err-hoist-lex-fun.js @@ -0,0 +1,21 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Function declarations are interpreted as lexically-scoped in module code +esid: sec-module-semantics-static-semantics-lexicallydeclarednames +info: | + ModuleItem : StatementListItem + + 1. Return LexicallyDeclaredNames of StatementListItem. + + 15.2.1.1 Static Semantics: Early Errors + + - It is a Syntax Error if any element of the LexicallyDeclaredNames of + ModuleItemList also occurs in the VarDeclaredNames of ModuleItemList. +negative: SyntaxError +flags: [module] +---*/ + +var f; +function f() {} diff --git a/test/language/module-code/parse-err-hoist-lex-gen.js b/test/language/module-code/parse-err-hoist-lex-gen.js new file mode 100644 index 0000000000..6f32a70240 --- /dev/null +++ b/test/language/module-code/parse-err-hoist-lex-gen.js @@ -0,0 +1,22 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Generator function declarations are interpreted as lexically-scoped in + module code +esid: sec-module-semantics-static-semantics-lexicallydeclarednames +info: | + ModuleItem : StatementListItem + + 1. Return LexicallyDeclaredNames of StatementListItem. + + 15.2.1.1 Static Semantics: Early Errors + + - It is a Syntax Error if any element of the LexicallyDeclaredNames of + ModuleItemList also occurs in the VarDeclaredNames of ModuleItemList. +negative: SyntaxError +flags: [module] +---*/ + +var g; +function* g() {} diff --git a/test/language/module-code/parse-err-invoke-anon-fun-decl.js b/test/language/module-code/parse-err-invoke-anon-fun-decl.js new file mode 100644 index 0000000000..e161036907 --- /dev/null +++ b/test/language/module-code/parse-err-invoke-anon-fun-decl.js @@ -0,0 +1,21 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Anonymous function declaration must not be interpreted as an expression +esid: sec-exports +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; +negative: SyntaxError +flags: [module] +---*/ + +export default function() {}(); diff --git a/test/language/module-code/parse-err-invoke-anon-gen-decl.js b/test/language/module-code/parse-err-invoke-anon-gen-decl.js new file mode 100644 index 0000000000..68c13642fe --- /dev/null +++ b/test/language/module-code/parse-err-invoke-anon-gen-decl.js @@ -0,0 +1,22 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + Anonymous generator function declaration must not be interpreted as an + expression +esid: sec-exports +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; +negative: SyntaxError +flags: [module] +---*/ + +export default function* () {}(); diff --git a/test/language/module-code/parse-err-reference.js b/test/language/module-code/parse-err-reference.js new file mode 100644 index 0000000000..8521599c0e --- /dev/null +++ b/test/language/module-code/parse-err-reference.js @@ -0,0 +1,18 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Early ReferenceError resulting from module parsing +esid: sec-parsemodule +negative: ReferenceError +info: | + [...] + 2. Parse sourceText using Module as the goal symbol and analyze the parse + result for any Early Error conditions. If the parse was successful and + no early errors were found, let body be the resulting parse tree. + Otherwise, let body be a List of one or more SyntaxError or + ReferenceError objects representing the parsing errors and/or early + errors. +flags: [module] +---*/ + +1++; diff --git a/test/language/module-code/parse-err-semi-dflt-expr.js b/test/language/module-code/parse-err-semi-dflt-expr.js new file mode 100644 index 0000000000..78cba692fd --- /dev/null +++ b/test/language/module-code/parse-err-semi-dflt-expr.js @@ -0,0 +1,22 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + "export default AssignmentExpression" declarations require a trailing + semicolon or LineTerminator +esid: sec-exports +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; +negative: SyntaxError +flags: [module] +---*/ + +export default null null; diff --git a/test/language/module-code/parse-err-semi-export-clause-from.js b/test/language/module-code/parse-err-semi-export-clause-from.js new file mode 100644 index 0000000000..b581cd3e65 --- /dev/null +++ b/test/language/module-code/parse-err-semi-export-clause-from.js @@ -0,0 +1,22 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + "export ExportClause FromClause" declarations require a trailing semicolon + or LineTerminator +esid: sec-exports +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; +negative: SyntaxError +flags: [module] +---*/ + +export {} from './parse-err-semi-export-clause-from.js' null; diff --git a/test/language/module-code/parse-err-semi-export-clause.js b/test/language/module-code/parse-err-semi-export-clause.js new file mode 100644 index 0000000000..7b45846291 --- /dev/null +++ b/test/language/module-code/parse-err-semi-export-clause.js @@ -0,0 +1,22 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + "export ExportClause" declarations require a trailing semicolon or + LineTerminator +esid: sec-exports +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; +negative: SyntaxError +flags: [module] +---*/ + +export {} null; diff --git a/test/language/module-code/parse-err-semi-export-star.js b/test/language/module-code/parse-err-semi-export-star.js new file mode 100644 index 0000000000..cc8f908891 --- /dev/null +++ b/test/language/module-code/parse-err-semi-export-star.js @@ -0,0 +1,21 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: > + "export *" declarations require a trailing semicolon or LineTerminator +esid: sec-exports +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; +negative: SyntaxError +flags: [module] +---*/ + +export * from './parse-err-semi-export-star.js' null; diff --git a/test/language/module-code/parse-err-syntax.js b/test/language/module-code/parse-err-syntax.js new file mode 100644 index 0000000000..ec36f521c6 --- /dev/null +++ b/test/language/module-code/parse-err-syntax.js @@ -0,0 +1,18 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: Early SyntaxError resulting from module parsing +esid: sec-parsemodule +negative: SyntaxError +info: | + [...] + 2. Parse sourceText using Module as the goal symbol and analyze the parse + result for any Early Error conditions. If the parse was successful and + no early errors were found, let body be the resulting parse tree. + Otherwise, let body be a List of one or more SyntaxError or + ReferenceError objects representing the parsing errors and/or early + errors. +flags: [module] +---*/ + +? diff --git a/test/language/module-code/parse-export-empty.js b/test/language/module-code/parse-export-empty.js new file mode 100644 index 0000000000..fd95dcc3a7 --- /dev/null +++ b/test/language/module-code/parse-export-empty.js @@ -0,0 +1,38 @@ +// Copyright (C) 2016 the V8 project authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. +/*--- +description: An ExportClause does not require an ExportsList. +esid: sec-parsemodule +info: | + ExportDeclaration: + export * FromClause; + export ExportClause FromClause; + export ExportClause; + export VariableStatement + export Declaration + export default HoistableDeclaration[Default] + export default ClassDeclaration[Default] + export default [lookahead ∉ { function, class }] AssignmentExpression[In]; + + ExportClause: + { } + { ExportsList } + { ExportsList , } + + NOTE: This form has no observable side effects. +flags: [module] +---*/ + +export{}; +export {}; +export {} +export { }; +export +{ + +}; +export//- +{//- +//- +}; +export/**/{/**/};