Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d6648e4f
Commit
d6648e4f
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 in_eval.
parent
be3dc381
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
engine.c
dlls/jscript/engine.c
+2
-4
api.js
dlls/jscript/tests/api.js
+3
-0
No files found.
dlls/jscript/engine.c
View file @
d6648e4f
...
...
@@ -2065,10 +2065,8 @@ static HRESULT in_eval(exec_ctx_t *ctx, VARIANT *lval, VARIANT *obj, jsexcept_t
BSTR
str
;
HRESULT
hres
;
if
(
V_VT
(
obj
)
!=
VT_DISPATCH
)
{
FIXME
(
"throw TypeError
\n
"
);
return
E_FAIL
;
}
if
(
V_VT
(
obj
)
!=
VT_DISPATCH
||
!
V_DISPATCH
(
obj
))
return
throw_type_error
(
ctx
->
parser
->
script
,
ei
,
IDS_OBJECT_EXPECTED
,
NULL
);
hres
=
to_string
(
ctx
->
parser
->
script
,
lval
,
ei
,
&
str
);
if
(
FAILED
(
hres
))
...
...
dlls/jscript/tests/api.js
View file @
d6648e4f
...
...
@@ -1891,6 +1891,9 @@ 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
);
exception_test
(
function
()
{
"test"
in
3
;},
"TypeError"
,
-
2146823281
);
exception_test
(
function
()
{
"test"
in
null
;},
"TypeError"
,
-
2146823281
);
exception_test
(
function
()
{
"test"
in
nullDisp
;},
"TypeError"
,
-
2146823281
);
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