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
9c248189
Commit
9c248189
authored
Sep 30, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Added delete expression for EXPRVAL_IDREF implementation.
parent
65a20746
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
engine.c
dlls/jscript/engine.c
+11
-0
lang.js
dlls/jscript/tests/lang.js
+7
-0
No files found.
dlls/jscript/engine.c
View file @
9c248189
...
...
@@ -2069,6 +2069,17 @@ HRESULT delete_expression_eval(exec_ctx_t *ctx, expression_t *_expr, DWORD flags
return
hres
;
switch
(
exprval
.
type
)
{
case
EXPRVAL_IDREF
:
{
IDispatchEx
*
dispex
;
hres
=
IDispatch_QueryInterface
(
exprval
.
u
.
nameref
.
disp
,
&
IID_IDispatchEx
,
(
void
**
)
&
dispex
);
if
(
SUCCEEDED
(
hres
))
{
hres
=
IDispatchEx_DeleteMemberByDispID
(
dispex
,
exprval
.
u
.
idref
.
id
);
b
=
VARIANT_TRUE
;
IDispatchEx_Release
(
dispex
);
}
break
;
}
case
EXPRVAL_NAMEREF
:
{
IDispatchEx
*
dispex
;
...
...
dlls/jscript/tests/lang.js
View file @
9c248189
...
...
@@ -741,4 +741,11 @@ function varTestFunc(varTest3) {
var
varTest4
;
}
deleteTest
=
1
;
delete
deleteTest
;
try
{
tmp
=
deleteTest
;
ok
(
false
,
"deleteTest not throwed exception?"
);
}
catch
(
ex
)
{}
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