2017-06-12 20:57:26 +00:00
|
|
|
eval_let_6: {
|
2017-05-18 03:28:35 +00:00
|
|
|
input: {
|
|
|
|
|
eval("let a;");
|
|
|
|
|
console.log();
|
|
|
|
|
}
|
|
|
|
|
expect: {
|
|
|
|
|
eval("let a;");
|
|
|
|
|
console.log();
|
|
|
|
|
}
|
|
|
|
|
expect_stdout: ""
|
|
|
|
|
node_version: ">=6"
|
|
|
|
|
}
|
2017-06-12 20:57:26 +00:00
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
}
|