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
c0fc15b9
Commit
c0fc15b9
authored
Aug 17, 2009
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed Array's function lengths.
parent
67520788
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
array.c
dlls/jscript/array.c
+7
-7
api.js
dlls/jscript/tests/api.js
+15
-0
No files found.
dlls/jscript/array.c
View file @
c0fc15b9
...
@@ -784,19 +784,19 @@ static void Array_on_put(DispatchEx *dispex, const WCHAR *name)
...
@@ -784,19 +784,19 @@ static void Array_on_put(DispatchEx *dispex, const WCHAR *name)
}
}
static
const
builtin_prop_t
Array_props
[]
=
{
static
const
builtin_prop_t
Array_props
[]
=
{
{
concatW
,
Array_concat
,
PROPF_METHOD
},
{
concatW
,
Array_concat
,
PROPF_METHOD
|
1
},
{
joinW
,
Array_join
,
PROPF_METHOD
},
{
joinW
,
Array_join
,
PROPF_METHOD
|
1
},
{
lengthW
,
Array_length
,
0
},
{
lengthW
,
Array_length
,
0
},
{
popW
,
Array_pop
,
PROPF_METHOD
},
{
popW
,
Array_pop
,
PROPF_METHOD
},
{
pushW
,
Array_push
,
PROPF_METHOD
},
{
pushW
,
Array_push
,
PROPF_METHOD
|
1
},
{
reverseW
,
Array_reverse
,
PROPF_METHOD
},
{
reverseW
,
Array_reverse
,
PROPF_METHOD
},
{
shiftW
,
Array_shift
,
PROPF_METHOD
},
{
shiftW
,
Array_shift
,
PROPF_METHOD
},
{
sliceW
,
Array_slice
,
PROPF_METHOD
},
{
sliceW
,
Array_slice
,
PROPF_METHOD
|
2
},
{
sortW
,
Array_sort
,
PROPF_METHOD
},
{
sortW
,
Array_sort
,
PROPF_METHOD
|
1
},
{
spliceW
,
Array_splice
,
PROPF_METHOD
},
{
spliceW
,
Array_splice
,
PROPF_METHOD
|
2
},
{
toLocaleStringW
,
Array_toLocaleString
,
PROPF_METHOD
},
{
toLocaleStringW
,
Array_toLocaleString
,
PROPF_METHOD
},
{
toStringW
,
Array_toString
,
PROPF_METHOD
},
{
toStringW
,
Array_toString
,
PROPF_METHOD
},
{
unshiftW
,
Array_unshift
,
PROPF_METHOD
},
{
unshiftW
,
Array_unshift
,
PROPF_METHOD
|
1
},
};
};
static
const
builtin_info_t
Array_info
=
{
static
const
builtin_info_t
Array_info
=
{
...
...
dlls/jscript/tests/api.js
View file @
c0fc15b9
...
@@ -1503,4 +1503,19 @@ testFunctions(Date.prototype, [
...
@@ -1503,4 +1503,19 @@ testFunctions(Date.prototype, [
[
"valueOf"
,
0
]
[
"valueOf"
,
0
]
]);
]);
testFunctions
(
Array
.
prototype
,
[
[
"concat"
,
1
],
[
"join"
,
1
],
[
"push"
,
1
],
[
"pop"
,
0
],
[
"reverse"
,
0
],
[
"shift"
,
0
],
[
"slice"
,
2
],
[
"sort"
,
1
],
[
"splice"
,
2
],
[
"toLocaleString"
,
0
],
[
"toString"
,
0
],
[
"unshift"
,
1
]
]);
reportSuccess
();
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