author | mchung |
Sat, 24 Feb 2018 09:41:42 -0800 | |
changeset 48984 | b5d1fb0701d4 |
parent 47217 | 72e3ae9a25eb |
permissions | -rw-r--r-- |
47217 | 1 |
test/nashorn/script/error/JDK-8026039.js:30:9 "public" cannot be used as function name in strict mode |
20571
f52b0abf5d88
8026039: future strict names are allowed as function name and argument name of a strict function
sundar
parents:
diff
changeset
|
2 |
function public() {"use strict"} |
f52b0abf5d88
8026039: future strict names are allowed as function name and argument name of a strict function
sundar
parents:
diff
changeset
|
3 |
^ |
47217 | 4 |
test/nashorn/script/error/JDK-8026039.js:32:11 Expected ident but found public |
24778
2ff5d7041566
8044638: Tidy up Nashorn codebase for code standards
attila
parents:
20571
diff
changeset
|
5 |
function f(public) {"use strict"} |
20571
f52b0abf5d88
8026039: future strict names are allowed as function name and argument name of a strict function
sundar
parents:
diff
changeset
|
6 |
^ |
47217 | 7 |
test/nashorn/script/error/JDK-8026039.js:33:0 Expected } but found eof |
20571
f52b0abf5d88
8026039: future strict names are allowed as function name and argument name of a strict function
sundar
parents:
diff
changeset
|
8 |
|
f52b0abf5d88
8026039: future strict names are allowed as function name and argument name of a strict function
sundar
parents:
diff
changeset
|
9 |
^ |