summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/switch-basic.js
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Tests/switch-basic.js')
-rw-r--r--Libraries/LibJS/Tests/switch-basic.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/Libraries/LibJS/Tests/switch-basic.js b/Libraries/LibJS/Tests/switch-basic.js
index 04bda00717..1fba80f9f0 100644
--- a/Libraries/LibJS/Tests/switch-basic.js
+++ b/Libraries/LibJS/Tests/switch-basic.js
@@ -1,4 +1,8 @@
+load("test-common.js");
+
switch (1 + 2) {
+case '3':
+ assertNotReached();
case 3:
console.log("PASS");
break;