jscript: Return proper error in Number.toLocaleString with invalid 'this' in ES5...
commit41782ec12eaa8e86330d8997096280b1f21c506b
authorGabriel Ivăncescu <gabrielopcode@gmail.com>
Tue, 3 May 2022 15:17:07 +0000 (3 18:17 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 3 May 2022 18:24:18 +0000 (3 20:24 +0200)
tree5484fd571fdee4c54fd113bb31dc67edd192af2b
parent8aefdf48f9846e05aeef3c7ce2374401982b98b4
jscript: Return proper error in Number.toLocaleString with invalid 'this' in ES5 mode.

Note that, for example, Number.toFixed still returns JS_E_NUMBER_EXPECTED
even in ES5 mode (this is already tested).

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/jscript.h
dlls/jscript/jscript.rc
dlls/jscript/number.c
dlls/jscript/resource.h
dlls/jscript/set.c
dlls/mshtml/tests/es5.js