summaryrefslogtreecommitdiff
path: root/src/dstr-assignment/array-rest-nested-array-invalid.case
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/dstr-assignment/array-rest-nested-array-invalid.case
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/dstr-assignment/array-rest-nested-array-invalid.case')
-rw-r--r--src/dstr-assignment/array-rest-nested-array-invalid.case2
1 files changed, 2 insertions, 0 deletions
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