aboutsummaryrefslogtreecommitdiff
path: root/test/compress/node_version.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/node_version.js')
-rw-r--r--test/compress/node_version.js28
1 files changed, 27 insertions, 1 deletions
diff --git a/test/compress/node_version.js b/test/compress/node_version.js
index ad0bfa15..ef62fd70 100644
--- a/test/compress/node_version.js
+++ b/test/compress/node_version.js
@@ -1,4 +1,4 @@
-eval_let: {
+eval_let_6: {
input: {
eval("let a;");
console.log();
@@ -10,3 +10,29 @@ eval_let: {
expect_stdout: ""
node_version: ">=6"
}
+
+eval_let_4: {
+ input: {
+ eval("let a;");
+ console.log();
+ }
+ expect: {
+ eval("let a;");
+ console.log();
+ }
+ expect_stdout: SyntaxError("Block-scoped declarations (let, const, function, class) not yet supported outside strict mode")
+ node_version: "4"
+}
+
+eval_let_0: {
+ input: {
+ eval("let a;");
+ console.log();
+ }
+ expect: {
+ eval("let a;");
+ console.log();
+ }
+ expect_stdout: SyntaxError("Unexpected identifier")
+ node_version: "<=0.12"
+}