summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Pennisi <mike@mikepennisi.com>2017-04-29 16:31:08 -0400
committerRick Waldron <waldron.rick@gmail.com>2017-06-28 11:24:36 -0400
commit81d00def42cdc7eb83eae2cf0126e26fc0002ce3 (patch)
treec0fa9d5676721445c45f08c358f7b35746e73dbb /src
parente5ffc904d6162305006089bb1f3ec815ec7eaa81 (diff)
downloadqtdeclarative-testsuites-81d00def42cdc7eb83eae2cf0126e26fc0002ce3.tar.gz
Force "early error" tests to fail if evaluated
This pattern makes expectations more explicit by making test files more literal.
Diffstat (limited to 'src')
-rw-r--r--src/async-functions/await-as-binding-identifier-escaped.case2
-rw-r--r--src/async-functions/await-as-binding-identifier.case2
-rw-r--r--src/async-functions/await-as-identifier-reference-escaped.case2
-rw-r--r--src/async-functions/await-as-identifier-reference.case2
-rw-r--r--src/async-functions/await-as-label-identifier-escaped.case2
-rw-r--r--src/async-functions/await-as-label-identifier.case2
-rw-r--r--src/async-generators/await-as-binding-identifier-escaped.case2
-rw-r--r--src/async-generators/await-as-binding-identifier.case2
-rw-r--r--src/async-generators/await-as-identifier-reference-escaped.case2
-rw-r--r--src/async-generators/await-as-identifier-reference.case2
-rw-r--r--src/async-generators/await-as-label-identifier-escaped.case2
-rw-r--r--src/async-generators/await-as-label-identifier.case2
-rw-r--r--src/async-generators/yield-as-binding-identifier-escaped.case2
-rw-r--r--src/async-generators/yield-as-binding-identifier.case2
-rw-r--r--src/async-generators/yield-as-identifier-reference-escaped.case2
-rw-r--r--src/async-generators/yield-as-identifier-reference.case2
-rw-r--r--src/async-generators/yield-as-label-identifier-escaped.case2
-rw-r--r--src/async-generators/yield-as-label-identifier.case2
-rw-r--r--src/async-generators/yield-identifier-spread-strict.case2
-rw-r--r--src/async-generators/yield-identifier-strict.case2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-class-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-const-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-let-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-var-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-class-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-const-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-let-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-var-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/block-attempt-to-redeclare-class-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/block-attempt-to-redeclare-const-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/block-attempt-to-redeclare-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/block-attempt-to-redeclare-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/block-attempt-to-redeclare-let-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-class-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-const-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-function-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-generator-declaration.template2
-rw-r--r--src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-let-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-async-generator-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-class-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-const-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-function-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-generator-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-let-declaration.template2
-rw-r--r--src/declarations/redeclare/block-attempt-to-redeclare-var-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-async-function-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-async-generator-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-class-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-function-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-generator-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-let-declaration.template2
-rw-r--r--src/declarations/redeclare/switch-attempt-to-redeclare-var-declaration.template2
-rw-r--r--src/dstr-assignment-for-await/array-elem-init-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment-for-await/array-elem-nested-array-invalid.case2
-rw-r--r--src/dstr-assignment-for-await/array-elem-nested-array-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment-for-await/array-elem-nested-obj-invalid.case2
-rw-r--r--src/dstr-assignment-for-await/array-elem-nested-obj-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment-for-await/array-elem-target-simple-strict.case2
-rw-r--r--src/dstr-assignment-for-await/array-elem-target-yield-invalid.case2
-rw-r--r--src/dstr-assignment/array-elem-init-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/array-elem-nested-array-invalid.case2
-rw-r--r--src/dstr-assignment/array-elem-nested-array-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/array-elem-nested-obj-invalid.case2
-rw-r--r--src/dstr-assignment/array-elem-nested-obj-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/array-elem-target-simple-strict.case2
-rw-r--r--src/dstr-assignment/array-elem-target-yield-invalid.case2
-rw-r--r--src/dstr-assignment/array-rest-before-element.case2
-rw-r--r--src/dstr-assignment/array-rest-before-elision.case2
-rw-r--r--src/dstr-assignment/array-rest-before-rest.case2
-rw-r--r--src/dstr-assignment/array-rest-elision-invalid.case2
-rw-r--r--src/dstr-assignment/array-rest-init.case1
-rw-r--r--src/dstr-assignment/array-rest-nested-array-invalid.case2
-rw-r--r--src/dstr-assignment/array-rest-nested-array-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/array-rest-nested-obj-invalid.case2
-rw-r--r--src/dstr-assignment/array-rest-nested-obj-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/array-rest-yield-ident-invalid.case1
-rw-r--r--src/dstr-assignment/obj-id-identifier-yield-expr.case1
-rw-r--r--src/dstr-assignment/obj-id-identifier-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/obj-id-init-simple-strict.case2
-rw-r--r--src/dstr-assignment/obj-id-init-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/obj-id-simple-strict.case2
-rw-r--r--src/dstr-assignment/obj-prop-elem-init-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/obj-prop-elem-target-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/obj-prop-nested-array-invalid.case2
-rw-r--r--src/dstr-assignment/obj-prop-nested-array-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/obj-prop-nested-obj-invalid.case2
-rw-r--r--src/dstr-assignment/obj-prop-nested-obj-yield-ident-invalid.case2
-rw-r--r--src/dstr-assignment/obj-rest-not-last-element-invalid.case1
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-init-id.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case2
-rw-r--r--src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case2
-rw-r--r--src/dstr-binding/ary-ptrn-rest-init-ary.case2
-rw-r--r--src/dstr-binding/ary-ptrn-rest-init-id.case2
-rw-r--r--src/dstr-binding/ary-ptrn-rest-init-obj.case2
-rw-r--r--src/dstr-binding/ary-ptrn-rest-not-final-ary.case2
-rw-r--r--src/dstr-binding/ary-ptrn-rest-not-final-id.case2
-rw-r--r--src/dstr-binding/ary-ptrn-rest-not-final-obj.case2
-rw-r--r--src/function-forms/dflt-params-duplicates.case2
-rw-r--r--src/function-forms/dflt-params-rest.case2
-rw-r--r--src/function-forms/rest-params-trailing-comma-early-error.case2
-rw-r--r--src/generators/yield-as-binding-identifier-escaped.case2
-rw-r--r--src/generators/yield-as-binding-identifier.case2
-rw-r--r--src/generators/yield-as-identifier-reference-escaped.case2
-rw-r--r--src/generators/yield-as-identifier-reference.case2
-rw-r--r--src/generators/yield-as-label-identifier-escaped.case2
-rw-r--r--src/generators/yield-as-label-identifier.case2
-rw-r--r--src/generators/yield-identifier-spread-strict.case2
-rw-r--r--src/generators/yield-identifier-strict.case2
125 files changed, 246 insertions, 0 deletions
diff --git a/src/async-functions/await-as-binding-identifier-escaped.case b/src/async-functions/await-as-binding-identifier-escaped.case
index a17c98456..b5bf6b9d6 100644
--- a/src/async-functions/await-as-binding-identifier-escaped.case
+++ b/src/async-functions/await-as-binding-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var \u0061wait;
diff --git a/src/async-functions/await-as-binding-identifier.case b/src/async-functions/await-as-binding-identifier.case
index 94105c794..00217b7f8 100644
--- a/src/async-functions/await-as-binding-identifier.case
+++ b/src/async-functions/await-as-binding-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var await;
diff --git a/src/async-functions/await-as-identifier-reference-escaped.case b/src/async-functions/await-as-identifier-reference-escaped.case
index 06a3799ea..bcb931f20 100644
--- a/src/async-functions/await-as-identifier-reference-escaped.case
+++ b/src/async-functions/await-as-identifier-reference-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void \u0061wait;
diff --git a/src/async-functions/await-as-identifier-reference.case b/src/async-functions/await-as-identifier-reference.case
index 158303b71..fd9e1a71b 100644
--- a/src/async-functions/await-as-identifier-reference.case
+++ b/src/async-functions/await-as-identifier-reference.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void await;
diff --git a/src/async-functions/await-as-label-identifier-escaped.case b/src/async-functions/await-as-label-identifier-escaped.case
index efcb5c394..0f2a6bea3 100644
--- a/src/async-functions/await-as-label-identifier-escaped.case
+++ b/src/async-functions/await-as-label-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
\u0061wait: ;
diff --git a/src/async-functions/await-as-label-identifier.case b/src/async-functions/await-as-label-identifier.case
index ba7ba2a7c..b7ef8214a 100644
--- a/src/async-functions/await-as-label-identifier.case
+++ b/src/async-functions/await-as-label-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
await: ;
diff --git a/src/async-generators/await-as-binding-identifier-escaped.case b/src/async-generators/await-as-binding-identifier-escaped.case
index a17c98456..b5bf6b9d6 100644
--- a/src/async-generators/await-as-binding-identifier-escaped.case
+++ b/src/async-generators/await-as-binding-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var \u0061wait;
diff --git a/src/async-generators/await-as-binding-identifier.case b/src/async-generators/await-as-binding-identifier.case
index 94105c794..00217b7f8 100644
--- a/src/async-generators/await-as-binding-identifier.case
+++ b/src/async-generators/await-as-binding-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var await;
diff --git a/src/async-generators/await-as-identifier-reference-escaped.case b/src/async-generators/await-as-identifier-reference-escaped.case
index 06a3799ea..bcb931f20 100644
--- a/src/async-generators/await-as-identifier-reference-escaped.case
+++ b/src/async-generators/await-as-identifier-reference-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void \u0061wait;
diff --git a/src/async-generators/await-as-identifier-reference.case b/src/async-generators/await-as-identifier-reference.case
index 158303b71..fd9e1a71b 100644
--- a/src/async-generators/await-as-identifier-reference.case
+++ b/src/async-generators/await-as-identifier-reference.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void await;
diff --git a/src/async-generators/await-as-label-identifier-escaped.case b/src/async-generators/await-as-label-identifier-escaped.case
index efcb5c394..0f2a6bea3 100644
--- a/src/async-generators/await-as-label-identifier-escaped.case
+++ b/src/async-generators/await-as-label-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
\u0061wait: ;
diff --git a/src/async-generators/await-as-label-identifier.case b/src/async-generators/await-as-label-identifier.case
index ba7ba2a7c..b7ef8214a 100644
--- a/src/async-generators/await-as-label-identifier.case
+++ b/src/async-generators/await-as-label-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
await: ;
diff --git a/src/async-generators/yield-as-binding-identifier-escaped.case b/src/async-generators/yield-as-binding-identifier-escaped.case
index 824622585..147ca4c7c 100644
--- a/src/async-generators/yield-as-binding-identifier-escaped.case
+++ b/src/async-generators/yield-as-binding-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var yi\u0065ld;
diff --git a/src/async-generators/yield-as-binding-identifier.case b/src/async-generators/yield-as-binding-identifier.case
index e66e47a80..d8cc3e40b 100644
--- a/src/async-generators/yield-as-binding-identifier.case
+++ b/src/async-generators/yield-as-binding-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var yield;
diff --git a/src/async-generators/yield-as-identifier-reference-escaped.case b/src/async-generators/yield-as-identifier-reference-escaped.case
index 13bbc6c1c..f7dcf3aa5 100644
--- a/src/async-generators/yield-as-identifier-reference-escaped.case
+++ b/src/async-generators/yield-as-identifier-reference-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void yi\u0065ld;
diff --git a/src/async-generators/yield-as-identifier-reference.case b/src/async-generators/yield-as-identifier-reference.case
index 35f6cfa41..c3653ed95 100644
--- a/src/async-generators/yield-as-identifier-reference.case
+++ b/src/async-generators/yield-as-identifier-reference.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void yield;
diff --git a/src/async-generators/yield-as-label-identifier-escaped.case b/src/async-generators/yield-as-label-identifier-escaped.case
index 0da82aaff..a2fcf4146 100644
--- a/src/async-generators/yield-as-label-identifier-escaped.case
+++ b/src/async-generators/yield-as-label-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
yi\u0065ld: ;
diff --git a/src/async-generators/yield-as-label-identifier.case b/src/async-generators/yield-as-label-identifier.case
index 49665658a..ef33cc9cc 100644
--- a/src/async-generators/yield-as-label-identifier.case
+++ b/src/async-generators/yield-as-label-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
yield: ;
diff --git a/src/async-generators/yield-identifier-spread-strict.case b/src/async-generators/yield-identifier-spread-strict.case
index 7c84ac4da..75042b63f 100644
--- a/src/async-generators/yield-identifier-spread-strict.case
+++ b/src/async-generators/yield-identifier-spread-strict.case
@@ -19,6 +19,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
return {
...(function() {
diff --git a/src/async-generators/yield-identifier-strict.case b/src/async-generators/yield-identifier-strict.case
index 6c9e49f82..685af4984 100644
--- a/src/async-generators/yield-identifier-strict.case
+++ b/src/async-generators/yield-identifier-strict.case
@@ -12,6 +12,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
(function() {
var yield;
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-function-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-function-declaration.template
index 2a5c0f3e3..a0e90feb3 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-function-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-function-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-functions]
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ async function f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-generator-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-generator-declaration.template
index 17ae293b6..c8a64a2d7 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-generator-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-async-generator-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-iteration]
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ async function* f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-class-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-class-declaration.template
index 0fd13ee65..140806a66 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-class-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-class-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ class f {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-const-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-const-declaration.template
index 0c9d092a8..5fff047ee 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-const-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-const-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ const f = 0; /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-function-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-function-declaration.template
index bf954a75e..32d3b9d74 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-function-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-function-declaration.template
@@ -16,4 +16,6 @@ negative:
flags: [onlyStrict]
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ function f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-generator-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-generator-declaration.template
index f991d228a..bee74b6fb 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-generator-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-generator-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ function* f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-let-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-let-declaration.template
index 592556b0f..5398a7c12 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-let-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-let-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ let f; /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-var-declaration.template b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-var-declaration.template
index 50f548934..ea7e46c37 100644
--- a/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-var-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/block-attempt-to-redeclare-var-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ var f; /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-function-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-function-declaration.template
index 40a2bf41e..f8a67ab1f 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-function-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-function-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-functions]
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template
index 326f03d47..fd49f18ba 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-iteration]
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-class-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-class-declaration.template
index 0e8888e4b..ad666954a 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-class-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-class-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: class f {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-const-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-const-declaration.template
index 9829abbf6..d167fab3c 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-const-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-const-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-function-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-function-declaration.template
index 7ad3eede2..9c2dce3e4 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-function-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-function-declaration.template
@@ -16,4 +16,6 @@ negative:
flags: [onlyStrict]
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: function f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-generator-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-generator-declaration.template
index 5fb499613..2cac174f7 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-generator-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-generator-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-let-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-let-declaration.template
index f11a6dc15..291054eba 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-let-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-let-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: let f; default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-var-declaration.template b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-var-declaration.template
index dd83e6bcd..3fbf919f2 100644
--- a/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-var-declaration.template
+++ b/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-var-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: var f; default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-function-declaration.template b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-function-declaration.template
index 28c7f582f..6629461c8 100644
--- a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-function-declaration.template
+++ b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-function-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-functions]
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ async function f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-generator-declaration.template b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-generator-declaration.template
index d07e3e68a..9e1b9b02b 100644
--- a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-generator-declaration.template
+++ b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-async-generator-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-iteration]
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ async function* f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-class-declaration.template b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-class-declaration.template
index 4cadafbd7..1993a5be7 100644
--- a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-class-declaration.template
+++ b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-class-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ class f {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-const-declaration.template b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-const-declaration.template
index 711fdf422..c8447c0ec 100644
--- a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-const-declaration.template
+++ b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-const-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ const f = 0; /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-function-declaration.template b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-function-declaration.template
index 9e8ee15f5..e95e9c050 100644
--- a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-function-declaration.template
+++ b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-function-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ function f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-generator-declaration.template b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-generator-declaration.template
index f4a49b40c..91ab5086f 100644
--- a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-generator-declaration.template
+++ b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-generator-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ function* f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-let-declaration.template b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-let-declaration.template
index 57f5bebe9..bdfbcdbe1 100644
--- a/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-let-declaration.template
+++ b/src/declarations/redeclare-allow-var/block-attempt-to-redeclare-let-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ let f; /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-function-declaration.template b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-function-declaration.template
index 37f893c81..324776953 100644
--- a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-function-declaration.template
+++ b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-function-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-functions]
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-generator-declaration.template b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-generator-declaration.template
index 7c049c54d..b67ff4f6b 100644
--- a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-generator-declaration.template
+++ b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-async-generator-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-iteration]
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-class-declaration.template b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-class-declaration.template
index 2462d78ed..cbc24ee61 100644
--- a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-class-declaration.template
+++ b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-class-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: class f {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-const-declaration.template b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-const-declaration.template
index 8361a53a7..f8a297809 100644
--- a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-const-declaration.template
+++ b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-const-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-function-declaration.template b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-function-declaration.template
index 12da4af5c..358c216ae 100644
--- a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-function-declaration.template
+++ b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-function-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: function f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-generator-declaration.template b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-generator-declaration.template
index 029076ae5..039476cbd 100644
--- a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-generator-declaration.template
+++ b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-generator-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-let-declaration.template b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-let-declaration.template
index 18fb61d17..971f916cf 100644
--- a/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-let-declaration.template
+++ b/src/declarations/redeclare-allow-var/switch-attempt-to-redeclare-let-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: let f; default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template
index 2a5c0f3e3..a0e90feb3 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-async-function-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-functions]
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ async function f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-async-generator-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-async-generator-declaration.template
index 17ae293b6..c8a64a2d7 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-async-generator-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-async-generator-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-iteration]
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ async function* f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-class-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-class-declaration.template
index 0fd13ee65..140806a66 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-class-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-class-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ class f {} /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-const-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-const-declaration.template
index 0c9d092a8..5fff047ee 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-const-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-const-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ const f = 0; /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-function-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-function-declaration.template
index f16312537..b7266f98f 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-function-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-function-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ function f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-generator-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-generator-declaration.template
index f991d228a..bee74b6fb 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-generator-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-generator-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ function* f() {} /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-let-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-let-declaration.template
index 592556b0f..5398a7c12 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-let-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-let-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ let f; /*{ body }*/ }
diff --git a/src/declarations/redeclare/block-attempt-to-redeclare-var-declaration.template b/src/declarations/redeclare/block-attempt-to-redeclare-var-declaration.template
index 50f548934..ea7e46c37 100644
--- a/src/declarations/redeclare/block-attempt-to-redeclare-var-declaration.template
+++ b/src/declarations/redeclare/block-attempt-to-redeclare-var-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
{ var f; /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-async-function-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-async-function-declaration.template
index 40a2bf41e..f8a67ab1f 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-async-function-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-async-function-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-functions]
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: async function f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-async-generator-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-async-generator-declaration.template
index 326f03d47..fd49f18ba 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-async-generator-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-async-generator-declaration.template
@@ -16,4 +16,6 @@ negative:
features: [async-iteration]
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: async function* f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-class-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-class-declaration.template
index 0e8888e4b..ad666954a 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-class-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-class-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: class f {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template
index 9829abbf6..d167fab3c 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: const f = 0; default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-function-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-function-declaration.template
index 25e21f00b..6e4c169ab 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-function-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-function-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: function f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-generator-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-generator-declaration.template
index 5fb499613..2cac174f7 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-generator-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-generator-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: function* f() {} default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-let-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-let-declaration.template
index f11a6dc15..291054eba 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-let-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-let-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: let f; default: /*{ body }*/ }
diff --git a/src/declarations/redeclare/switch-attempt-to-redeclare-var-declaration.template b/src/declarations/redeclare/switch-attempt-to-redeclare-var-declaration.template
index dd83e6bcd..3fbf919f2 100644
--- a/src/declarations/redeclare/switch-attempt-to-redeclare-var-declaration.template
+++ b/src/declarations/redeclare/switch-attempt-to-redeclare-var-declaration.template
@@ -15,4 +15,6 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
switch (0) { case 1: var f; default: /*{ body }*/ }
diff --git a/src/dstr-assignment-for-await/array-elem-init-yield-ident-invalid.case b/src/dstr-assignment-for-await/array-elem-init-yield-ident-invalid.case
index 559a52fc2..d3fdb10f1 100644
--- a/src/dstr-assignment-for-await/array-elem-init-yield-ident-invalid.case
+++ b/src/dstr-assignment-for-await/array-elem-init-yield-ident-invalid.case
@@ -13,6 +13,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[ x = yield ]
//- vals
diff --git a/src/dstr-assignment-for-await/array-elem-nested-array-invalid.case b/src/dstr-assignment-for-await/array-elem-nested-array-invalid.case
index c61cdc9a8..9b556c2f3 100644
--- a/src/dstr-assignment-for-await/array-elem-nested-array-invalid.case
+++ b/src/dstr-assignment-for-await/array-elem-nested-array-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[[(x, y)]]
//- vals
diff --git a/src/dstr-assignment-for-await/array-elem-nested-array-yield-ident-invalid.case b/src/dstr-assignment-for-await/array-elem-nested-array-yield-ident-invalid.case
index bf7e26e6c..28c48f83d 100644
--- a/src/dstr-assignment-for-await/array-elem-nested-array-yield-ident-invalid.case
+++ b/src/dstr-assignment-for-await/array-elem-nested-array-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[[x[yield]]]
//- vals
diff --git a/src/dstr-assignment-for-await/array-elem-nested-obj-invalid.case b/src/dstr-assignment-for-await/array-elem-nested-obj-invalid.case
index c4b38e413..bb008d7e3 100644
--- a/src/dstr-assignment-for-await/array-elem-nested-obj-invalid.case
+++ b/src/dstr-assignment-for-await/array-elem-nested-obj-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[{ get x() {} }]
//- vals
diff --git a/src/dstr-assignment-for-await/array-elem-nested-obj-yield-ident-invalid.case b/src/dstr-assignment-for-await/array-elem-nested-obj-yield-ident-invalid.case
index 6edca7faf..a9a80684f 100644
--- a/src/dstr-assignment-for-await/array-elem-nested-obj-yield-ident-invalid.case
+++ b/src/dstr-assignment-for-await/array-elem-nested-obj-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[{ x = yield }]
//- vals
diff --git a/src/dstr-assignment-for-await/array-elem-target-simple-strict.case b/src/dstr-assignment-for-await/array-elem-target-simple-strict.case
index a68cc95cb..d65263e6a 100644
--- a/src/dstr-assignment-for-await/array-elem-target-simple-strict.case
+++ b/src/dstr-assignment-for-await/array-elem-target-simple-strict.case
@@ -15,6 +15,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[arguments]
//- vals
diff --git a/src/dstr-assignment-for-await/array-elem-target-yield-invalid.case b/src/dstr-assignment-for-await/array-elem-target-yield-invalid.case
index d22bab44e..52730c3a1 100644
--- a/src/dstr-assignment-for-await/array-elem-target-yield-invalid.case
+++ b/src/dstr-assignment-for-await/array-elem-target-yield-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[ x[yield] ]
//- vals
diff --git a/src/dstr-assignment/array-elem-init-yield-ident-invalid.case b/src/dstr-assignment/array-elem-init-yield-ident-invalid.case
index a92e5fc49..507132957 100644
--- a/src/dstr-assignment/array-elem-init-yield-ident-invalid.case
+++ b/src/dstr-assignment/array-elem-init-yield-ident-invalid.case
@@ -13,6 +13,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[ x = yield ]
//- vals
diff --git a/src/dstr-assignment/array-elem-nested-array-invalid.case b/src/dstr-assignment/array-elem-nested-array-invalid.case
index c3d212df0..65a09d90f 100644
--- a/src/dstr-assignment/array-elem-nested-array-invalid.case
+++ b/src/dstr-assignment/array-elem-nested-array-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[[(x, y)]]
//- vals
diff --git a/src/dstr-assignment/array-elem-nested-array-yield-ident-invalid.case b/src/dstr-assignment/array-elem-nested-array-yield-ident-invalid.case
index 67bfe4340..302ab495f 100644
--- a/src/dstr-assignment/array-elem-nested-array-yield-ident-invalid.case
+++ b/src/dstr-assignment/array-elem-nested-array-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[[x[yield]]]
//- vals
diff --git a/src/dstr-assignment/array-elem-nested-obj-invalid.case b/src/dstr-assignment/array-elem-nested-obj-invalid.case
index 5b486bc48..45c1526bf 100644
--- a/src/dstr-assignment/array-elem-nested-obj-invalid.case
+++ b/src/dstr-assignment/array-elem-nested-obj-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[{ get x() {} }]
//- vals
diff --git a/src/dstr-assignment/array-elem-nested-obj-yield-ident-invalid.case b/src/dstr-assignment/array-elem-nested-obj-yield-ident-invalid.case
index d6a792c8b..549af19c4 100644
--- a/src/dstr-assignment/array-elem-nested-obj-yield-ident-invalid.case
+++ b/src/dstr-assignment/array-elem-nested-obj-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[{ x = yield }]
//- vals
diff --git a/src/dstr-assignment/array-elem-target-simple-strict.case b/src/dstr-assignment/array-elem-target-simple-strict.case
index a06ccd75d..c76bb36f8 100644
--- a/src/dstr-assignment/array-elem-target-simple-strict.case
+++ b/src/dstr-assignment/array-elem-target-simple-strict.case
@@ -15,6 +15,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[arguments]
//- vals
diff --git a/src/dstr-assignment/array-elem-target-yield-invalid.case b/src/dstr-assignment/array-elem-target-yield-invalid.case
index 71270d5f4..7962148db 100644
--- a/src/dstr-assignment/array-elem-target-yield-invalid.case
+++ b/src/dstr-assignment/array-elem-target-yield-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[ x[yield] ]
//- vals
diff --git a/src/dstr-assignment/array-rest-before-element.case b/src/dstr-assignment/array-rest-before-element.case
index cbf87ec13..80959d2b2 100644
--- a/src/dstr-assignment/array-rest-before-element.case
+++ b/src/dstr-assignment/array-rest-before-element.case
@@ -12,6 +12,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x, y]
//- vals
diff --git a/src/dstr-assignment/array-rest-before-elision.case b/src/dstr-assignment/array-rest-before-elision.case
index d97663df9..a7508bd19 100644
--- a/src/dstr-assignment/array-rest-before-elision.case
+++ b/src/dstr-assignment/array-rest-before-elision.case
@@ -12,6 +12,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x,]
//- vals
diff --git a/src/dstr-assignment/array-rest-before-rest.case b/src/dstr-assignment/array-rest-before-rest.case
index 304e0ab48..1f2da3859 100644
--- a/src/dstr-assignment/array-rest-before-rest.case
+++ b/src/dstr-assignment/array-rest-before-rest.case
@@ -12,6 +12,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x, ...y]
//- vals
diff --git a/src/dstr-assignment/array-rest-elision-invalid.case b/src/dstr-assignment/array-rest-elision-invalid.case
index 019fa58dd..8cc5b534e 100644
--- a/src/dstr-assignment/array-rest-elision-invalid.case
+++ b/src/dstr-assignment/array-rest-elision-invalid.case
@@ -12,6 +12,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x,]
//- vals
diff --git a/src/dstr-assignment/array-rest-init.case b/src/dstr-assignment/array-rest-init.case
index aaf654fa4..ef4a9c99a 100644
--- a/src/dstr-assignment/array-rest-init.case
+++ b/src/dstr-assignment/array-rest-init.case
@@ -12,6 +12,7 @@ negative:
---*/
//- setup
+throw "Test262: This statement should not be evaluated.";
var x;
//- elems
[...x = 1]
diff --git a/src/dstr-assignment/array-rest-nested-array-invalid.case b/src/dstr-assignment/array-rest-nested-array-invalid.case
index 0163c4e00..68ef352a7 100644
--- a/src/dstr-assignment/array-rest-nested-array-invalid.case
+++ b/src/dstr-assignment/array-rest-nested-array-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[(x, y)]]
//- vals
diff --git a/src/dstr-assignment/array-rest-nested-array-yield-ident-invalid.case b/src/dstr-assignment/array-rest-nested-array-yield-ident-invalid.case
index 42c334b40..9a05d7695 100644
--- a/src/dstr-assignment/array-rest-nested-array-yield-ident-invalid.case
+++ b/src/dstr-assignment/array-rest-nested-array-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[x[yield]]]
//- vals
diff --git a/src/dstr-assignment/array-rest-nested-obj-invalid.case b/src/dstr-assignment/array-rest-nested-obj-invalid.case
index b393f1677..f306e4e0f 100644
--- a/src/dstr-assignment/array-rest-nested-obj-invalid.case
+++ b/src/dstr-assignment/array-rest-nested-obj-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ get x() {} }]
//- vals
diff --git a/src/dstr-assignment/array-rest-nested-obj-yield-ident-invalid.case b/src/dstr-assignment/array-rest-nested-obj-yield-ident-invalid.case
index 7b88162a6..8351f99f7 100644
--- a/src/dstr-assignment/array-rest-nested-obj-yield-ident-invalid.case
+++ b/src/dstr-assignment/array-rest-nested-obj-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ x = yield }]
//- vals
diff --git a/src/dstr-assignment/array-rest-yield-ident-invalid.case b/src/dstr-assignment/array-rest-yield-ident-invalid.case
index 3dec86f32..e47a8ab22 100644
--- a/src/dstr-assignment/array-rest-yield-ident-invalid.case
+++ b/src/dstr-assignment/array-rest-yield-ident-invalid.case
@@ -15,6 +15,7 @@ negative:
---*/
//- setup
+throw "Test262: This statement should not be evaluated.";
var x = {};
//- elems
[...x[yield]]
diff --git a/src/dstr-assignment/obj-id-identifier-yield-expr.case b/src/dstr-assignment/obj-id-identifier-yield-expr.case
index d188630ee..c070ab49f 100644
--- a/src/dstr-assignment/obj-id-identifier-yield-expr.case
+++ b/src/dstr-assignment/obj-id-identifier-yield-expr.case
@@ -15,6 +15,7 @@ negative:
---*/
//- setup
+throw "Test262: This statement should not be evaluated.";
(function*() {
//- elems
{ yield }
diff --git a/src/dstr-assignment/obj-id-identifier-yield-ident-invalid.case b/src/dstr-assignment/obj-id-identifier-yield-ident-invalid.case
index e668456de..c0c05007b 100644
--- a/src/dstr-assignment/obj-id-identifier-yield-ident-invalid.case
+++ b/src/dstr-assignment/obj-id-identifier-yield-ident-invalid.case
@@ -13,6 +13,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ yield }
//- vals
diff --git a/src/dstr-assignment/obj-id-init-simple-strict.case b/src/dstr-assignment/obj-id-init-simple-strict.case
index c2eebf520..29759d148 100644
--- a/src/dstr-assignment/obj-id-init-simple-strict.case
+++ b/src/dstr-assignment/obj-id-init-simple-strict.case
@@ -13,6 +13,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ eval = 0 }
//- vals
diff --git a/src/dstr-assignment/obj-id-init-yield-ident-invalid.case b/src/dstr-assignment/obj-id-init-yield-ident-invalid.case
index 31ed69b95..ad4e779c3 100644
--- a/src/dstr-assignment/obj-id-init-yield-ident-invalid.case
+++ b/src/dstr-assignment/obj-id-init-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ x = yield }
//- vals
diff --git a/src/dstr-assignment/obj-id-simple-strict.case b/src/dstr-assignment/obj-id-simple-strict.case
index 07ee74ad9..11d516fec 100644
--- a/src/dstr-assignment/obj-id-simple-strict.case
+++ b/src/dstr-assignment/obj-id-simple-strict.case
@@ -13,6 +13,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ eval }
//- vals
diff --git a/src/dstr-assignment/obj-prop-elem-init-yield-ident-invalid.case b/src/dstr-assignment/obj-prop-elem-init-yield-ident-invalid.case
index 3209b2ae6..8f5194be7 100644
--- a/src/dstr-assignment/obj-prop-elem-init-yield-ident-invalid.case
+++ b/src/dstr-assignment/obj-prop-elem-init-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ x: x = yield }
//- vals
diff --git a/src/dstr-assignment/obj-prop-elem-target-yield-ident-invalid.case b/src/dstr-assignment/obj-prop-elem-target-yield-ident-invalid.case
index 5499eff41..4a2b52230 100644
--- a/src/dstr-assignment/obj-prop-elem-target-yield-ident-invalid.case
+++ b/src/dstr-assignment/obj-prop-elem-target-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ x: x[yield] }
//- vals
diff --git a/src/dstr-assignment/obj-prop-nested-array-invalid.case b/src/dstr-assignment/obj-prop-nested-array-invalid.case
index e211a9715..0357aee51 100644
--- a/src/dstr-assignment/obj-prop-nested-array-invalid.case
+++ b/src/dstr-assignment/obj-prop-nested-array-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ x: [(x, y)] }
//- vals
diff --git a/src/dstr-assignment/obj-prop-nested-array-yield-ident-invalid.case b/src/dstr-assignment/obj-prop-nested-array-yield-ident-invalid.case
index da8930471..b70af5351 100644
--- a/src/dstr-assignment/obj-prop-nested-array-yield-ident-invalid.case
+++ b/src/dstr-assignment/obj-prop-nested-array-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ x: [x = yield] }
//- vals
diff --git a/src/dstr-assignment/obj-prop-nested-obj-invalid.case b/src/dstr-assignment/obj-prop-nested-obj-invalid.case
index b20785934..aa48b84e7 100644
--- a/src/dstr-assignment/obj-prop-nested-obj-invalid.case
+++ b/src/dstr-assignment/obj-prop-nested-obj-invalid.case
@@ -15,6 +15,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ x: { get x() {} } }
//- vals
diff --git a/src/dstr-assignment/obj-prop-nested-obj-yield-ident-invalid.case b/src/dstr-assignment/obj-prop-nested-obj-yield-ident-invalid.case
index a6a02878e..13b411c3f 100644
--- a/src/dstr-assignment/obj-prop-nested-obj-yield-ident-invalid.case
+++ b/src/dstr-assignment/obj-prop-nested-obj-yield-ident-invalid.case
@@ -14,6 +14,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
{ x: { x = yield } }
//- vals
diff --git a/src/dstr-assignment/obj-rest-not-last-element-invalid.case b/src/dstr-assignment/obj-rest-not-last-element-invalid.case
index 4f371dee5..83ec1dfd8 100644
--- a/src/dstr-assignment/obj-rest-not-last-element-invalid.case
+++ b/src/dstr-assignment/obj-rest-not-last-element-invalid.case
@@ -14,6 +14,7 @@ features: [object-rest]
---*/
//- setup
+throw "Test262: This statement should not be evaluated.";
var rest, b;
//- elems
{...rest, b}
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case b/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case
index 8d302fa4c..f4d19eca7 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-init-ary.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[ x ] = []]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case b/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case
index 157935b1a..518a5b320 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-init-id.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x = []]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case b/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case
index e55c245fd..0dbe74cd2 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-init-obj.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ x } = []]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case
index 4a7b66f86..8b3f55115 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-ary.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[x], y]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case
index b569bb020..026e7a4a8 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-id.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x, y]
//- vals
diff --git a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case
index 3540f3dd1..630e67a07 100644
--- a/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case
+++ b/src/dstr-binding-for-await/ary-ptrn-rest-not-final-obj.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ x }, y]
//- vals
diff --git a/src/dstr-binding/ary-ptrn-rest-init-ary.case b/src/dstr-binding/ary-ptrn-rest-init-ary.case
index ab359ad3f..f2d11f41b 100644
--- a/src/dstr-binding/ary-ptrn-rest-init-ary.case
+++ b/src/dstr-binding/ary-ptrn-rest-init-ary.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[ x ] = []]
//- vals
diff --git a/src/dstr-binding/ary-ptrn-rest-init-id.case b/src/dstr-binding/ary-ptrn-rest-init-id.case
index e5ab514c0..d3e5e3fa7 100644
--- a/src/dstr-binding/ary-ptrn-rest-init-id.case
+++ b/src/dstr-binding/ary-ptrn-rest-init-id.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x = []]
//- vals
diff --git a/src/dstr-binding/ary-ptrn-rest-init-obj.case b/src/dstr-binding/ary-ptrn-rest-init-obj.case
index dc3cf7437..9a05a4bdd 100644
--- a/src/dstr-binding/ary-ptrn-rest-init-obj.case
+++ b/src/dstr-binding/ary-ptrn-rest-init-obj.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ x } = []]
//- vals
diff --git a/src/dstr-binding/ary-ptrn-rest-not-final-ary.case b/src/dstr-binding/ary-ptrn-rest-not-final-ary.case
index c76c83d0a..ad081d2b6 100644
--- a/src/dstr-binding/ary-ptrn-rest-not-final-ary.case
+++ b/src/dstr-binding/ary-ptrn-rest-not-final-ary.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...[x], y]
//- vals
diff --git a/src/dstr-binding/ary-ptrn-rest-not-final-id.case b/src/dstr-binding/ary-ptrn-rest-not-final-id.case
index 962733013..6a8b4fd86 100644
--- a/src/dstr-binding/ary-ptrn-rest-not-final-id.case
+++ b/src/dstr-binding/ary-ptrn-rest-not-final-id.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...x, y]
//- vals
diff --git a/src/dstr-binding/ary-ptrn-rest-not-final-obj.case b/src/dstr-binding/ary-ptrn-rest-not-final-obj.case
index 00c70507e..89650fa49 100644
--- a/src/dstr-binding/ary-ptrn-rest-not-final-obj.case
+++ b/src/dstr-binding/ary-ptrn-rest-not-final-obj.case
@@ -15,6 +15,8 @@ info: >
[ BindingElementList[?Yield] , Elisionopt BindingRestElement[?Yield]opt ]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- elems
[...{ x }, y]
//- vals
diff --git a/src/function-forms/dflt-params-duplicates.case b/src/function-forms/dflt-params-duplicates.case
index 544c444a8..35a49a20a 100644
--- a/src/function-forms/dflt-params-duplicates.case
+++ b/src/function-forms/dflt-params-duplicates.case
@@ -24,5 +24,7 @@ info: |
features: [default-parameters]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- params
x = 0, x
diff --git a/src/function-forms/dflt-params-rest.case b/src/function-forms/dflt-params-rest.case
index 2b96d624a..6b591bc1f 100644
--- a/src/function-forms/dflt-params-rest.case
+++ b/src/function-forms/dflt-params-rest.case
@@ -26,5 +26,7 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- params
...x = []
diff --git a/src/function-forms/rest-params-trailing-comma-early-error.case b/src/function-forms/rest-params-trailing-comma-early-error.case
index 42bdf3f86..ab2ad22c3 100644
--- a/src/function-forms/rest-params-trailing-comma-early-error.case
+++ b/src/function-forms/rest-params-trailing-comma-early-error.case
@@ -20,5 +20,7 @@ info: |
FormalParameterList[?Yield, ?Await] , FunctionRestParameter[?Yield, ?Await]
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- params
...a,
diff --git a/src/generators/yield-as-binding-identifier-escaped.case b/src/generators/yield-as-binding-identifier-escaped.case
index 824622585..147ca4c7c 100644
--- a/src/generators/yield-as-binding-identifier-escaped.case
+++ b/src/generators/yield-as-binding-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var yi\u0065ld;
diff --git a/src/generators/yield-as-binding-identifier.case b/src/generators/yield-as-binding-identifier.case
index e66e47a80..d8cc3e40b 100644
--- a/src/generators/yield-as-binding-identifier.case
+++ b/src/generators/yield-as-binding-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
var yield;
diff --git a/src/generators/yield-as-identifier-reference-escaped.case b/src/generators/yield-as-identifier-reference-escaped.case
index 13bbc6c1c..f7dcf3aa5 100644
--- a/src/generators/yield-as-identifier-reference-escaped.case
+++ b/src/generators/yield-as-identifier-reference-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void yi\u0065ld;
diff --git a/src/generators/yield-as-identifier-reference.case b/src/generators/yield-as-identifier-reference.case
index 35f6cfa41..c3653ed95 100644
--- a/src/generators/yield-as-identifier-reference.case
+++ b/src/generators/yield-as-identifier-reference.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
void yield;
diff --git a/src/generators/yield-as-label-identifier-escaped.case b/src/generators/yield-as-label-identifier-escaped.case
index 0da82aaff..a2fcf4146 100644
--- a/src/generators/yield-as-label-identifier-escaped.case
+++ b/src/generators/yield-as-label-identifier-escaped.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
yi\u0065ld: ;
diff --git a/src/generators/yield-as-label-identifier.case b/src/generators/yield-as-label-identifier.case
index 49665658a..ef33cc9cc 100644
--- a/src/generators/yield-as-label-identifier.case
+++ b/src/generators/yield-as-label-identifier.case
@@ -17,5 +17,7 @@ negative:
template: syntax
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
yield: ;
diff --git a/src/generators/yield-identifier-spread-strict.case b/src/generators/yield-identifier-spread-strict.case
index 7c84ac4da..75042b63f 100644
--- a/src/generators/yield-identifier-spread-strict.case
+++ b/src/generators/yield-identifier-spread-strict.case
@@ -19,6 +19,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
return {
...(function() {
diff --git a/src/generators/yield-identifier-strict.case b/src/generators/yield-identifier-strict.case
index 6c9e49f82..685af4984 100644
--- a/src/generators/yield-identifier-strict.case
+++ b/src/generators/yield-identifier-strict.case
@@ -12,6 +12,8 @@ negative:
type: SyntaxError
---*/
+//- setup
+throw "Test262: This statement should not be evaluated.";
//- body
(function() {
var yield;