nashorn/test/script/nosecurity/parserapi_strict.js.EXPECTED
author sundar
Tue, 12 Jul 2016 21:18:13 +0530
changeset 39662 e2b36a3779b9
parent 37732 3673fec68d16
permissions -rw-r--r--
8149929: Nashorn Parser API needs to be updated for ES6 Reviewed-by: mhaupt, hannesw

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:18 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' };
                      ^