test/script/error/JDK-8026039.js.EXPECTED

Wed, 17 Jun 2015 14:21:20 +0530

author
sundar
date
Wed, 17 Jun 2015 14:21:20 +0530
changeset 1413
fb91ff186894
parent 963
e2497b11a021
permissions
-rw-r--r--

8098847: obj."prop" and obj.'prop' should result in SyntaxError
Reviewed-by: hannesw, attila

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

mercurial