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
89da4559
Commit
89da4559
authored
Mar 01, 2018
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Properly support missing array elements in Array.pop.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5f9f9a45
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
array.c
dlls/jscript/array.c
+3
-2
api.js
dlls/jscript/tests/api.js
+2
-0
No files found.
dlls/jscript/array.c
View file @
89da4559
...
...
@@ -387,9 +387,10 @@ static HRESULT Array_pop(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, unsigned
hres
=
jsdisp_get_idx
(
jsthis
,
length
,
&
val
);
if
(
SUCCEEDED
(
hres
))
hres
=
jsdisp_delete_idx
(
jsthis
,
length
);
else
if
(
hres
==
DISP_E_UNKNOWNNAME
)
else
if
(
hres
==
DISP_E_UNKNOWNNAME
)
{
val
=
jsval_undefined
();
else
hres
=
S_OK
;
}
else
return
hres
;
if
(
SUCCEEDED
(
hres
))
...
...
dlls/jscript/tests/api.js
View file @
89da4559
...
...
@@ -909,6 +909,8 @@ arr = [,,,,,];
tmp
=
arr
.
pop
();
ok
(
arr
.
length
===
5
,
"arr.length = "
+
arr
.
length
);
ok
(
tmp
===
undefined
,
"tmp = "
+
tmp
);
tmp
=
[
1
,
2
,,,].
pop
();
ok
(
tmp
===
undefined
,
"tmp = "
+
tmp
);
function
PseudoArray
()
{
this
[
0
]
=
0
;
...
...
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