nashorn/test/script/error/JDK-8026039.js.EXPECTED
author sundar
Tue, 08 Oct 2013 14:57:31 +0200
changeset 20571 f52b0abf5d88
child 24778 2ff5d7041566
permissions -rw-r--r--
8026039: future strict names are allowed as function name and argument name of a strict function Reviewed-by: hannesw, jlaskey

test/script/error/JDK-8026039.js:30:9 "public" cannot be used as function name in strict mode
function public() {"use strict"}
         ^
test/script/error/JDK-8026039.js:32:11 Expected ident but found public
function f(public) {"use strict"} 
           ^
test/script/error/JDK-8026039.js:33:0 Expected } but found eof

^