jscript: Properly set JS_E_WRONG_THIS as a TypeError.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
This commit is contained in:
Gabriel Ivăncescu 2023-07-20 16:59:47 +03:00 committed by Alexandre Julliard
parent 62cee99658
commit 3ab9a1da45

View file

@ -483,6 +483,7 @@ jsdisp_t *create_builtin_error(script_ctx_t *ctx)
case JS_E_OBJECT_NONEXTENSIBLE:
case JS_E_NONCONFIGURABLE_REDEFINED:
case JS_E_NONWRITABLE_MODIFIED:
case JS_E_WRONG_THIS:
case JS_E_KEY_NOT_OBJECT:
case JS_E_PROP_DESC_MISMATCH:
case JS_E_INVALID_WRITABLE_PROP_DESC: