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
898cb6fc
Commit
898cb6fc
authored
Sep 21, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added Array default value implementation.
parent
2efae9e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
array.c
dlls/jscript/array.c
+11
-2
api.js
dlls/jscript/tests/api.js
+5
-0
No files found.
dlls/jscript/array.c
View file @
898cb6fc
...
...
@@ -621,8 +621,17 @@ static HRESULT Array_isPrototypeOf(DispatchEx *dispex, LCID lcid, WORD flags, DI
static
HRESULT
Array_value
(
DispatchEx
*
dispex
,
LCID
lcid
,
WORD
flags
,
DISPPARAMS
*
dp
,
VARIANT
*
retv
,
jsexcept_t
*
ei
,
IServiceProvider
*
sp
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
TRACE
(
"
\n
"
);
switch
(
flags
)
{
case
INVOKE_PROPERTYGET
:
return
array_join
(
dispex
,
lcid
,
((
ArrayInstance
*
)
dispex
)
->
length
,
default_separatorW
,
retv
,
ei
,
sp
);
default:
FIXME
(
"unimplemented flags %x
\n
"
,
flags
);
return
E_NOTIMPL
;
}
return
S_OK
;
}
static
void
Array_destructor
(
DispatchEx
*
dispex
)
...
...
dlls/jscript/tests/api.js
View file @
898cb6fc
...
...
@@ -58,6 +58,11 @@ ok(arr["2"] === "test", "arr[2] is not \"test\"");
arr
[
"7"
]
=
true
;
ok
((
arr
.
length
===
8
),
"arr.length is not 8"
);
tmp
=
""
+
[];
ok
(
tmp
===
""
,
"'' + [] = "
+
tmp
);
tmp
=
""
+
[
1
,
true
];
ok
(
tmp
===
"1,true"
,
"'' + [1,true] = "
+
tmp
);
var
arr
=
new
Array
(
6
);
ok
(
typeof
(
arr
)
===
"object"
,
"arr (6) is not object"
);
ok
((
arr
.
length
===
6
),
"arr.length is not 6"
);
...
...
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