<div dir="ltr"><div class="gmail_extra">The specification phrase "the <b>this</b> value" and the "this" keyword are different. When the specification refers to "the <b>this</b> value", it is always referring to the original value of "this", not boxed or converted to the global object.<div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 1:27 PM, Will Thimbleby <span dir="ltr"><<a href="mailto:will@thimbleby.net" target="_blank">will@thimbleby.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>I have a JS in JS implementation (Tailspin <a href="https://github.com/wthimbleby/tailspin" target="_blank">https://github.com/wthimbleby/tailspin</a>), originally based on Narcissus. It is close to full conformance of the test262 test suite. One test that Tailspin fails is S15.2.4.4_A15 "Checking Object.prototype.valueOf when called as a global function" — I cannot figure out how this derives from the spec or how to correctly pass this test.<br><br>It seems to be result of Object.prototype.valueOf being treated as a strict function and this === undefined. But nothing I can find in the ES5.1 spec implies this.<br><br>Any help understanding S15.2.4.4_A15 would be great.<br><br>thanks<br>— Will<br>_______________________________________________<br>test262-discuss mailing list<br><a href="mailto:test262-discuss@mozilla.org">test262-discuss@mozilla.org</a><br><a href="https://mail.mozilla.org/listinfo/test262-discuss" target="_blank">https://mail.mozilla.org/listinfo/test262-discuss</a><br></blockquote><div><br></div></div></div></div></div>