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
53040dee
Commit
53040dee
authored
Sep 25, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added VT_R8 to string conversion implementation.
parent
8597d42c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
jsutils.c
dlls/jscript/jsutils.c
+12
-0
lang.js
dlls/jscript/tests/lang.js
+2
-0
No files found.
dlls/jscript/jsutils.c
View file @
53040dee
...
@@ -441,6 +441,18 @@ HRESULT to_string(script_ctx_t *ctx, VARIANT *v, jsexcept_t *ei, BSTR *str)
...
@@ -441,6 +441,18 @@ HRESULT to_string(script_ctx_t *ctx, VARIANT *v, jsexcept_t *ei, BSTR *str)
case
VT_I4
:
case
VT_I4
:
*
str
=
int_to_bstr
(
V_I4
(
v
));
*
str
=
int_to_bstr
(
V_I4
(
v
));
break
;
break
;
case
VT_R8
:
{
VARIANT
strv
;
HRESULT
hres
;
V_VT
(
&
strv
)
=
VT_EMPTY
;
hres
=
VariantChangeType
(
&
strv
,
v
,
0
,
VT_BSTR
);
if
(
FAILED
(
hres
))
return
hres
;
*
str
=
V_BSTR
(
&
strv
);
return
S_OK
;
}
case
VT_BSTR
:
case
VT_BSTR
:
*
str
=
SysAllocString
(
V_BSTR
(
v
));
*
str
=
SysAllocString
(
V_BSTR
(
v
));
break
;
break
;
...
...
dlls/jscript/tests/lang.js
View file @
53040dee
...
@@ -366,6 +366,8 @@ ok("" + null === "null", "\"\" + null !== \"null\"");
...
@@ -366,6 +366,8 @@ ok("" + null === "null", "\"\" + null !== \"null\"");
ok
(
""
+
undefined
===
"undefined"
,
"
\"\"
+ undefined !==
\"
undefined
\"
"
);
ok
(
""
+
undefined
===
"undefined"
,
"
\"\"
+ undefined !==
\"
undefined
\"
"
);
ok
(
""
+
true
===
"true"
,
"
\"\"
+ true !==
\"
true
\"
"
);
ok
(
""
+
true
===
"true"
,
"
\"\"
+ true !==
\"
true
\"
"
);
ok
(
""
+
false
===
"false"
,
"
\"\"
+ false !==
\"
false
\"
"
);
ok
(
""
+
false
===
"false"
,
"
\"\"
+ false !==
\"
false
\"
"
);
ok
(
""
+
0.5
===
"0.5"
,
"'' + 0.5 = "
+
0.5
);
ok
(
""
+
(
-
0.5432
)
===
"-0.5432"
,
"'' + (-0.5432) = "
+
(
-
0.5432
));
ok
(
1
<
3.4
,
"1 < 3.4 failed"
);
ok
(
1
<
3.4
,
"1 < 3.4 failed"
);
ok
(
!
(
3.4
<
1
),
"3.4 < 1"
);
ok
(
!
(
3.4
<
1
),
"3.4 < 1"
);
...
...
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