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
4dbd777d
Commit
4dbd777d
authored
Dec 17, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Dec 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed deleting nonexistent identifiers.
parent
7f07bb9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
engine.c
dlls/jscript/engine.c
+11
-5
lang.js
dlls/jscript/tests/lang.js
+1
-0
No files found.
dlls/jscript/engine.c
View file @
4dbd777d
...
...
@@ -1631,16 +1631,22 @@ static HRESULT interp_delete_ident(exec_ctx_t *ctx)
if
(
FAILED
(
hres
))
return
hres
;
if
(
exprval
.
type
!=
EXPRVAL_IDREF
)
{
switch
(
exprval
.
type
)
{
case
EXPRVAL_IDREF
:
hres
=
disp_delete
(
exprval
.
u
.
idref
.
disp
,
exprval
.
u
.
idref
.
id
,
&
ret
);
IDispatch_Release
(
exprval
.
u
.
idref
.
disp
);
if
(
FAILED
(
hres
))
return
ret
;
break
;
case
EXPRVAL_INVALID
:
ret
=
TRUE
;
break
;
default
:
FIXME
(
"Unsupported exprval
\n
"
);
exprval_release
(
&
exprval
);
return
E_NOTIMPL
;
}
hres
=
disp_delete
(
exprval
.
u
.
idref
.
disp
,
exprval
.
u
.
idref
.
id
,
&
ret
);
IDispatch_Release
(
exprval
.
u
.
idref
.
disp
);
if
(
FAILED
(
hres
))
return
ret
;
return
stack_push
(
ctx
,
jsval_bool
(
ret
));
}
...
...
dlls/jscript/tests/lang.js
View file @
4dbd777d
...
...
@@ -1123,6 +1123,7 @@ for(iter in tmp)
ok
(
false
,
"tmp has prop "
+
iter
);
ok
((
delete
tmp
.
test
)
===
true
,
"deleting test didn't return true"
);
ok
((
delete
tmp
.
nonexistent
)
===
true
,
"deleting nonexistent didn't return true"
);
ok
((
delete
nonexistent
)
===
true
,
"deleting nonexistent didn't return true"
);
tmp
=
new
Object
();
tmp
.
test
=
false
;
...
...
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