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
7b41f777
Commit
7b41f777
authored
Oct 15, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added undefined to number conversion implementation.
parent
53ade93c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
jsutils.c
dlls/jscript/jsutils.c
+6
-0
lang.js
dlls/jscript/tests/lang.js
+1
-0
No files found.
dlls/jscript/jsutils.c
View file @
7b41f777
...
...
@@ -16,6 +16,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include "wine/port.h"
#include <math.h>
#include "jscript.h"
...
...
@@ -325,6 +328,9 @@ static HRESULT str_to_number(BSTR str, VARIANT *ret)
HRESULT
to_number
(
script_ctx_t
*
ctx
,
VARIANT
*
v
,
jsexcept_t
*
ei
,
VARIANT
*
ret
)
{
switch
(
V_VT
(
v
))
{
case
VT_EMPTY
:
num_set_nan
(
ret
);
break
;
case
VT_NULL
:
V_VT
(
ret
)
=
VT_I4
;
V_I4
(
ret
)
=
0
;
...
...
dlls/jscript/tests/lang.js
View file @
7b41f777
...
...
@@ -790,5 +790,6 @@ ok(isNaN(0.5) === false, "isNaN(0.5) !== false");
ok
(
isNaN
()
===
true
,
"isNaN() !== true"
);
ok
(
isNaN
(
NaN
,
0
)
===
true
,
"isNaN(NaN, 0) !== true"
);
ok
(
isNaN
(
0.5
,
NaN
)
===
false
,
"isNaN(0.5, NaN) !== false"
);
ok
(
isNaN
(
+
undefined
)
===
true
,
"isNaN(+undefined) !== true"
);
reportSuccess
();
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