Rhino should throw a syntax error when defining a function that is not standardized #577
Labels
bug
Issues considered a bug
Ecma Incompatibility
Issues about Rhino being incompatible with the EcmaScript spec
Rhino dose not throw any exception as show as the below test case, while others engines throw a syntax error, such as v8, spiderMonkey, javascriptCore and chakra.
Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Unnamed_function_statement
Version:
rhino-1.7.11
,rhino-1.7.10
,rhino-1.7.9
Testcase:
Command:
The text was updated successfully, but these errors were encountered: