jdk-24/nashorn/test/script/nosecurity/parserapi_strict.js.EXPECTED
Athijegannathan Sundararajan 0ed9eb856c 8074671: Nashorn Parser API
Reviewed-by: darcy, forax, attila, hannesw
2015-03-09 20:14:10 +05:30

17 lines
379 B
Plaintext

with_stat.js:2:1 "with" statement cannot be used in strict mode
with({}) {}
^
with_stat.js:2:7 Expected ; but found )
with({}) {}
^
repeat_param.js:2:15 strict mode function cannot have duplicate parameter name "x"
function func(x, x) {}
^
repeat_prop.js:2:22 Property "foo" already defined
var obj = { foo: 34, foo: 'hello' };
^