diff options
Diffstat (limited to 'src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template')
-rw-r--r-- | src/declarations/redeclare/switch-attempt-to-redeclare-const-declaration.template | 2 |
1 files changed, 2 insertions, 0 deletions
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 }*/ } |