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
f5b6c7cc
Commit
f5b6c7cc
authored
Apr 02, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Throw error in jsdisp_delete_idx for non-configurable properties.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
380ae426
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
dispex.c
dlls/jscript/dispex.c
+4
-1
es5.js
dlls/mshtml/tests/es5.js
+0
-4
No files found.
dlls/jscript/dispex.c
View file @
f5b6c7cc
...
...
@@ -2327,7 +2327,10 @@ HRESULT jsdisp_delete_idx(jsdisp_t *obj, DWORD idx)
if
(
FAILED
(
hres
)
||
!
prop
)
return
hres
;
return
delete_prop
(
prop
,
&
b
);
hres
=
delete_prop
(
prop
,
&
b
);
if
(
FAILED
(
hres
))
return
hres
;
return
b
?
S_OK
:
JS_E_INVALID_ACTION
;
}
HRESULT
disp_delete
(
IDispatch
*
disp
,
DISPID
id
,
BOOL
*
ret
)
...
...
dlls/mshtml/tests/es5.js
View file @
f5b6c7cc
...
...
@@ -1044,13 +1044,11 @@ sync_test("freeze", function() {
Object
.
freeze
(
o
);
try
{
o
.
pop
();
todo_wine
.
ok
(
false
,
"exception expected on o.pop"
);
}
catch
(
e
)
{
ok
(
e
.
name
===
"TypeError"
,
"got "
+
e
.
name
+
" exception"
);
}
ok
(
o
[
0
]
===
1
,
"o[0] = "
+
o
[
0
]);
todo_wine
.
ok
(
o
.
length
===
1
,
"o.length = "
+
o
.
length
);
});
...
...
@@ -1098,13 +1096,11 @@ sync_test("seal", function() {
Object
.
seal
(
o
);
try
{
o
.
pop
();
todo_wine
.
ok
(
false
,
"exception expected on o.pop"
);
}
catch
(
e
)
{
ok
(
e
.
name
===
"TypeError"
,
"got "
+
e
.
name
+
" exception"
);
}
ok
(
o
[
0
]
===
1
,
"o[0] = "
+
o
[
0
]);
todo_wine
.
ok
(
o
.
length
===
1
,
"o.length = "
+
o
.
length
);
});
...
...
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