The following code snippet should throw a TypeError exception but it returns the global object instead. ({}).valueOf.call(null) 15.2.4.4 Object.prototype.valueOf ( ) ... 1. Let O be the result of calling ToObject passing the this value as the argument. 9.9 ToObject ... Argument Type Result Undefined Throw a TypeError exception. Null Throw a TypeError exception. The same problem occurs in other places like Array.prototype.slice.call(undefined) etc.
Should this be merged with https://bugs.webkit.org/show_bug.cgi?id=51097 ?
*** This bug has been marked as a duplicate of bug 64250 ***