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
e7f2754c
Commit
e7f2754c
authored
Sep 11, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed to_primitive for null dispatch.
parent
3e1430e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
jsutils.c
dlls/jscript/jsutils.c
+5
-0
lang.js
dlls/jscript/tests/lang.js
+1
-0
No files found.
dlls/jscript/jsutils.c
View file @
e7f2754c
...
...
@@ -198,6 +198,11 @@ HRESULT to_primitive(script_ctx_t *ctx, VARIANT *v, jsexcept_t *ei, VARIANT *ret
static
const
WCHAR
toStringW
[]
=
{
't'
,
'o'
,
'S'
,
't'
,
'r'
,
'i'
,
'n'
,
'g'
,
0
};
static
const
WCHAR
valueOfW
[]
=
{
'v'
,
'a'
,
'l'
,
'u'
,
'e'
,
'O'
,
'f'
,
0
};
if
(
!
V_DISPATCH
(
v
))
{
V_VT
(
ret
)
=
VT_NULL
;
break
;
}
jsdisp
=
iface_to_jsdisp
((
IUnknown
*
)
V_DISPATCH
(
v
));
if
(
!
jsdisp
)
{
V_VT
(
ret
)
=
VT_EMPTY
;
...
...
dlls/jscript/tests/lang.js
View file @
e7f2754c
...
...
@@ -942,6 +942,7 @@ ok(nullDisp == null, "nullDisp == null");
ok
(
getVT
(
true
&&
nullDisp
)
===
"VT_DISPATCH"
,
"getVT(0 && nullDisp) = "
+
getVT
(
true
&&
nullDisp
));
ok
(
!
nullDisp
===
true
,
"!nullDisp = "
+
!
nullDisp
);
ok
(
String
(
nullDisp
)
===
"null"
,
"String(nullDisp) = "
+
String
(
nullDisp
));
function
do_test
()
{}
function
nosemicolon
()
{}
nosemicolon
();
...
...
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