Status: New
Owner: ----
New issue 1980 by [email protected]: Error.prototype.toString
throws 'illegal access' instead of TypeError
http://code.google.com/p/v8/issues/detail?id=1980
V8 version 3.9.13 [console: readline]
d8> Error.prototype.toString.call(2)
(d8):1: illegal access
Error.prototype.toString.call(2)
From ES5.1:
15.11.4.4 Error.prototype.toString ( )
The following steps are taken:
1. Let O be the this value.
2. If Type(O) is not Object, throw a TypeError exception.
3. [...]
So step 2 defines that a TypeError should be thrown. V8 currently throws
the string 'illegal access'.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev