nashorn/test/script/nosecurity/parserapi_strict.js.EXPECTED
author dholmes
Wed, 24 Aug 2016 19:54:03 -0400
changeset 40669 252f9d8272af
parent 37732 3673fec68d16
permissions -rw-r--r--
8157904: Atomic::cmpxchg for jbyte is missing a fence on initial failure Reviewed-by: simonis, aph, kbarrett
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29407
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     1
with_stat.js:2:1 "with" statement cannot be used in strict mode
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     2
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     3
with({}) {}
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     4
 ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     5
with_stat.js:2:7 Expected ; but found )
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     6
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     7
with({}) {}
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     8
       ^
37732
3673fec68d16 8134503: support ES6 parsing in Nashorn
hannesw
parents: 29407
diff changeset
     9
repeat_param.js:2:18 strict mode function cannot have duplicate parameter name "x"
29407
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    10
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    11
function func(x, x) {}
37732
3673fec68d16 8134503: support ES6 parsing in Nashorn
hannesw
parents: 29407
diff changeset
    12
                  ^
29407
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    13
repeat_prop.js:2:22 Property "foo" already defined
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    14
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    15
var obj = { foo: 34, foo: 'hello' };
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    16
                      ^