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

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

mercurial