summaryrefslogtreecommitdiff
path: root/test/language/module-code/early-dup-export-dflt-id.js
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 /test/language/module-code/early-dup-export-dflt-id.js
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 'test/language/module-code/early-dup-export-dflt-id.js')
-rw-r--r--test/language/module-code/early-dup-export-dflt-id.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/language/module-code/early-dup-export-dflt-id.js b/test/language/module-code/early-dup-export-dflt-id.js
index 930d37b73..06bec7227 100644
--- a/test/language/module-code/early-dup-export-dflt-id.js
+++ b/test/language/module-code/early-dup-export-dflt-id.js
@@ -12,6 +12,8 @@ negative:
type: SyntaxError
---*/
+throw "Test262: This statement should not be evaluated.";
+
var x, y;
export default x;
export { y as default };