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
75cce3cd
Commit
75cce3cd
authored
Jul 14, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added implementation of Array constructor called as a function.
parent
346619d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
array.c
dlls/jscript/array.c
+1
-0
api.js
dlls/jscript/tests/api.js
+3
-0
No files found.
dlls/jscript/array.c
View file @
75cce3cd
...
...
@@ -774,6 +774,7 @@ static HRESULT ArrayConstr_value(DispatchEx *dispex, LCID lcid, WORD flags, DISP
TRACE
(
"
\n
"
);
switch
(
flags
)
{
case
DISPATCH_METHOD
:
case
DISPATCH_CONSTRUCT
:
{
if
(
arg_cnt
(
dp
)
==
1
&&
V_VT
((
arg_var
=
get_arg
(
dp
,
0
)))
==
VT_I4
)
{
if
(
V_I4
(
arg_var
)
<
0
)
{
...
...
dlls/jscript/tests/api.js
View file @
75cce3cd
...
...
@@ -501,6 +501,9 @@ arr.length = 3;
ok
(
arr
.
length
===
3
,
"arr.length = "
+
arr
.
length
);
ok
(
arr
.
toString
()
===
"1,,"
,
"arr.toString() = "
+
arr
.
toString
());
arr
=
Array
(
"a"
,
"b"
,
"c"
);
ok
(
arr
.
toString
()
===
"a,b,c"
,
"arr.toString() = "
+
arr
.
toString
());
ok
(
arr
.
valueOf
===
Object
.
prototype
.
valueOf
,
"arr.valueOf !== Object.prototype.valueOf"
);
ok
(
arr
===
arr
.
valueOf
(),
"arr !== arr.valueOf"
);
...
...
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