Status: New
Owner: ----
New issue 1247 by [email protected]: more unfriendly errors: "function
is not a function"
http://code.google.com/p/v8/issues/detail?id=1247
The expression `new /regexp/` triggers an unhelpful TypeError
message: "function is not a function". I understand why this is happening
(regexps are callable, so typeof needs to return "function"), but couldn't
the error be more helpful? A suggestion: "/regex/ can not be constructed",
since it is the lack of a [[Construct]] internal method that causes the
TypeError (see step 4 of section 11.2.2, http://es5.github.com/#x11.2.2).
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev