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
954dd16f
Commit
954dd16f
authored
Jul 31, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Aug 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Use the object containing the prop for builtin getters.
Since they act like values. Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
1b1d0972
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
dispex.c
dlls/jscript/dispex.c
+1
-1
es5.js
dlls/mshtml/tests/es5.js
+3
-0
No files found.
dlls/jscript/dispex.c
View file @
954dd16f
...
@@ -454,7 +454,7 @@ static HRESULT prop_get(jsdisp_t *This, IDispatch *jsthis, dispex_prop_t *prop,
...
@@ -454,7 +454,7 @@ static HRESULT prop_get(jsdisp_t *This, IDispatch *jsthis, dispex_prop_t *prop,
switch
(
prop
->
type
)
{
switch
(
prop
->
type
)
{
case
PROP_BUILTIN
:
case
PROP_BUILTIN
:
hres
=
prop
->
u
.
p
->
getter
(
This
->
ctx
,
This
,
r
);
hres
=
prop
->
u
.
p
->
getter
(
This
->
ctx
,
prop_obj
,
r
);
break
;
break
;
case
PROP_JSVAL
:
case
PROP_JSVAL
:
hres
=
jsval_copy
(
prop
->
u
.
val
,
r
);
hres
=
jsval_copy
(
prop
->
u
.
val
,
r
);
...
...
dlls/mshtml/tests/es5.js
View file @
954dd16f
...
@@ -1720,6 +1720,9 @@ sync_test("builtin_context", function() {
...
@@ -1720,6 +1720,9 @@ sync_test("builtin_context", function() {
ok
(
obj
===
window
,
"obj = "
+
obj
);
ok
(
obj
===
window
,
"obj = "
+
obj
);
obj
=
(
function
()
{
return
this
;
}).
call
(
42
);
obj
=
(
function
()
{
return
this
;
}).
call
(
42
);
ok
(
obj
.
valueOf
()
===
42
,
"obj = "
+
obj
);
ok
(
obj
.
valueOf
()
===
42
,
"obj = "
+
obj
);
obj
=
Object
.
create
([
100
]);
ok
(
obj
.
length
===
1
,
"obj.length = "
+
obj
.
length
);
});
});
sync_test
(
"host this"
,
function
()
{
sync_test
(
"host this"
,
function
()
{
...
...
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