Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
be3dc381
Commit
be3dc381
authored
Aug 16, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Throw TypeError in instanceof_expression_eval.
parent
50ef3a20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
engine.c
dlls/jscript/engine.c
+2
-4
jscript_En.rc
dlls/jscript/jscript_En.rc
+1
-0
resource.h
dlls/jscript/resource.h
+1
-0
api.js
dlls/jscript/tests/api.js
+3
-0
No files found.
dlls/jscript/engine.c
View file @
be3dc381
...
...
@@ -1999,10 +1999,8 @@ static HRESULT instanceof_eval(exec_ctx_t *ctx, VARIANT *inst, VARIANT *objv, js
static
const
WCHAR
prototypeW
[]
=
{
'p'
,
'r'
,
'o'
,
't'
,
'o'
,
't'
,
'y'
,
'p'
,
'e'
,
0
};
if
(
V_VT
(
objv
)
!=
VT_DISPATCH
)
{
FIXME
(
"throw TypeError
\n
"
);
return
E_FAIL
;
}
if
(
V_VT
(
objv
)
!=
VT_DISPATCH
||
!
V_DISPATCH
(
objv
))
return
throw_type_error
(
ctx
->
parser
->
script
,
ei
,
IDS_NOT_FUNC
,
NULL
);
obj
=
iface_to_jsdisp
((
IUnknown
*
)
V_DISPATCH
(
objv
));
if
(
!
obj
)
{
...
...
dlls/jscript/jscript_En.rc
View file @
be3dc381
...
...
@@ -26,6 +26,7 @@ STRINGTABLE
IDS_INVALID_CALL_ARG "Invalid procedure call or argument"
IDS_CREATE_OBJ_ERROR "Automation server can't create object"
IDS_NO_PROPERTY "Object doesn't support this property or method"
IDS_UNSUPPORTED_ACTION "Object doesn't support this action"
IDS_ARG_NOT_OPT "Argument not optional"
IDS_SYNTAX_ERROR "Syntax error"
IDS_SEMICOLON "Expected ';'"
...
...
dlls/jscript/resource.h
View file @
be3dc381
...
...
@@ -22,6 +22,7 @@
#define IDS_INVALID_CALL_ARG 0x0005
#define IDS_CREATE_OBJ_ERROR 0x01AD
#define IDS_NO_PROPERTY 0x01B6
#define IDS_UNSUPPORTED_ACTION 0x01BD
#define IDS_ARG_NOT_OPT 0x01c1
#define IDS_SYNTAX_ERROR 0x03EA
#define IDS_SEMICOLON 0x03EC
...
...
dlls/jscript/tests/api.js
View file @
be3dc381
...
...
@@ -1888,6 +1888,9 @@ exception_test(function() {eval("'unterminated")}, "SyntaxError", -2146827273);
exception_test
(
function
()
{
eval
(
"nonexistingfunc()"
)},
"TypeError"
,
-
2146823281
);
exception_test
(
function
()
{
RegExp
(
/a/
,
"g"
);},
"RegExpError"
,
-
2146823271
);
exception_test
(
function
()
{
encodeURI
(
'
\
udcaa'
);},
"URIError"
,
-
2146823264
);
exception_test
(
function
()
{(
new
Object
())
instanceof
3
;},
"TypeError"
,
-
2146823286
);
exception_test
(
function
()
{(
new
Object
())
instanceof
null
;},
"TypeError"
,
-
2146823286
);
exception_test
(
function
()
{(
new
Object
())
instanceof
nullDisp
;},
"TypeError"
,
-
2146823286
);
function
testThisExcept
(
func
,
number
)
{
exception_test
(
function
()
{
func
.
call
(
new
Object
())},
"TypeError"
,
number
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment