Error if argument to new is not a class.
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
var a = 123
|
||||
new a // expect runtime error: Must provide a class to 'new' to construct.
|
||||
Reference in New Issue
Block a user