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
7e4f254b
Commit
7e4f254b
authored
Jan 19, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Jan 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Support VARIANT type in jsval_strict_equal.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42c044ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
engine.c
dlls/jscript/engine.c
+3
-2
lang.js
dlls/jscript/tests/lang.js
+2
-0
No files found.
dlls/jscript/engine.c
View file @
7e4f254b
...
...
@@ -522,8 +522,9 @@ HRESULT jsval_strict_equal(jsval_t lval, jsval_t rval, BOOL *ret)
*
ret
=
!
get_bool
(
lval
)
==
!
get_bool
(
rval
);
break
;
case
JSV_VARIANT
:
FIXME
(
"VARIANT not implemented
\n
"
);
return
E_NOTIMPL
;
WARN
(
"VARIANT type, returning false
\n
"
);
*
ret
=
FALSE
;
return
S_OK
;
}
return
S_OK
;
...
...
dlls/jscript/tests/lang.js
View file @
7e4f254b
...
...
@@ -201,6 +201,7 @@ ok(tmp === 3, "tmp = " + tmp);
ok
(
getVT
(
d
/
d
)
===
"VT_I4"
,
"vt v_date(0) / v_date(0) = "
+
getVT
(
d
/
d
));
ok
((
+
d
)
===
e
,
"+v_date(0) = "
+
(
+
d
)
+
" expected "
+
e
);
ok
((
""
+
d
).
match
(
/^Sat Dec 30 00:00:00 .* 1899$/
)
!=
null
,
"+v_date(0) = "
+
d
);
ok
(
d
!=
d
,
"date d == d"
);
d
=
v_date
(
2.5
);
e
=
Date
.
parse
(
"Mon Jan 1 12:00:00 1900"
);
...
...
@@ -211,6 +212,7 @@ ok(tmp === 3, "tmp = " + tmp);
e
=
Date
.
parse
(
"Sat Mar 28 00:00:00 2015"
);
ok
((
+
d
)
===
e
,
"+v_date(2015y) = "
+
(
+
d
)
+
" expected "
+
e
);
ok
((
""
+
d
).
match
(
/^Sat Mar 28 00:00:00 .* 2015$/
)
!=
null
,
"+v_date(2015y) = "
+
d
);
ok
(
d
!=
d
,
"date d == d"
);
})();
function
testRecFunc
(
x
)
{
...
...
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