Status: New
Owner: ----

New issue 2525 by [email protected]: [[ThrowTypeError]] function object should not have a [[Construct]] internal property
http://code.google.com/p/v8/issues/detail?id=2525

Per ECMAScript 5.1 [13.2.3] "The [[ThrowTypeError]] Function Object", the [[ThrowTypeError]] object is defined without the [[Construct]] internal property. The following test case demonstrates that V8 assigns the [[Construct]] internal property to the [[ThrowTypeError]] object:
---
(function(){ var t = Object.getOwnPropertyDescriptor(function(){"use strict"}, "caller").get; return new t })()
---

Expected: "<<name>> is not a function" error (like when evaluating `new {}`)
Actual: The [[Code]] internal property of the [[ThrowTypeError]] object is executed

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to