jscript: Throw SyntaxError in eval function.
diff --git a/dlls/jscript/error.c b/dlls/jscript/error.c
index fb37fba..25a3836 100644
--- a/dlls/jscript/error.c
+++ b/dlls/jscript/error.c
@@ -424,7 +424,8 @@
DispatchEx *err;
HRESULT hres;
- LoadStringW(jscript_hinstance, id, buf, sizeof(buf)/sizeof(WCHAR));
+ buf[0] = '\0';
+ LoadStringW(jscript_hinstance, id&0xFFFF, buf, sizeof(buf)/sizeof(WCHAR));
if(str) pos = strchrW(buf, '|');
if(pos) {
@@ -435,7 +436,7 @@
WARN("%s\n", debugstr_w(buf));
- id |= 0x800A0000;
+ id |= JSCRIPT_ERROR;
hres = create_error(ctx, constr, &id, buf, &err);
if(FAILED(hres))
return hres;