summaryrefslogtreecommitdiff
path: root/src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template')
-rw-r--r--src/declarations/redeclare-allow-sloppy-function/switch-attempt-to-redeclare-async-generator-declaration.template2
1 files changed, 2 insertions, 0 deletions
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 }*/ }