-
Type:
Sub-task
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8
-
Component/s: core-libs
-
None
-
b94
-
generic
-
generic
-
Verified
Function constructor should make sure that the passed arguments confirm to argument name syntax and function body syntax. If not, SyntaxError should result.
Function("}),print('test'),({")
should result in SyntaxError.
Function("}),print('test'),({")
should result in SyntaxError.