Status: Accepted
Owner: [email protected]
Labels: Type-Bug Priority-Medium

New issue 3749 by [email protected]: `Function.prototype.toMethod`: check `newHome` before checking `this` as per the spec
https://code.google.com/p/v8/issues/detail?id=3749

`Function.prototype.toMethod` should check `newHome` before `this` as per https://people.mozilla.org/~jorendorff/es6-draft.html#sec-function.prototype.tomethod. V8 currently does it the other way around, resulting in the wrong error message being thrown.

Example:

    Function.prototype.toMethod.call(null, null)

Actual result:

TypeError: Function.prototype.toMethod was called on null, which is a object and not a function

Expected result:

TypeError: Function.prototype.toMethod: home object null is not an object

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
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/d/optout.

Reply via email to