jscript: Pass undefined 'this' instead of null in ES5 mode.
commit2e9d086b04a59dc02a795d2cf0a5d4a85b7c5e85
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Mon, 16 May 2022 16:18:41 +0000 (16 19:18 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 16 May 2022 20:10:15 +0000 (16 22:10 +0200)
treed550eb7510b6d82001da161f397dc77624d48ddb
parent5007c4d72f512455c9ad9d3a76ddbccb62ae7d44
jscript: Pass undefined 'this' instead of null in ES5 mode.

Based on the spec (ECMA-262 5.1 Edition 11.2.3.7), whereas the ES3 spec
says it gets replaced with null.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/jscript/function.c
dlls/mshtml/tests/es5.js