WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 203456
220842
A question about global variables
https://bugs.webkit.org/show_bug.cgi?id=220842
Summary
A question about global variables
NWU_NISL
Reported
2021-01-21 23:20:45 PST
#version: dbae081(
https://github.com/WebKit/WebKit-http/commit/dbae081ad7e22d9ab61edf2f337f6c2bb593c7f8
) #Testcase: var x = 4; Object.defineProperty(this, 'x', { writable: false }); x = 3; print(x); print(this.x); #Command: ./webkit/WebKitBuild/Release/bin/jsc testcase.js #Output: 3 4 #Expected output: 4 4 #Description: When executing this test case, since x is not writable (in line 3), other engines (such as v8, SpiderMonkey, chakra, etc.) did not change the value of x, but JavascriptCore successfully changed the value of x to 3. Maybe this is a bug of JavascriptCore.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-01-27 16:54:51 PST
<
rdar://problem/73686367
>
Yusuke Suzuki
Comment 2
2021-02-01 02:42:51 PST
@Alexey maybe this is the same to
https://bugs.webkit.org/show_bug.cgi?id=203456
?
Alexey Shvayka
Comment 3
2021-02-02 07:39:27 PST
(In reply to Yusuke Suzuki from
comment #2
)
> @Alexey maybe this is the same to >
https://bugs.webkit.org/show_bug.cgi?id=203456
?
Yeah, that's right, thanks. I wish we could remove JSGlobalObject::defineOwnProperty() though... *** This bug has been marked as a duplicate of
bug 203456
***
Yusuke Suzuki
Comment 4
2021-02-02 10:45:22 PST
(In reply to Alexey Shvayka from
comment #3
)
> (In reply to Yusuke Suzuki from
comment #2
) > > @Alexey maybe this is the same to > >
https://bugs.webkit.org/show_bug.cgi?id=203456
? > > Yeah, that's right, thanks. > I wish we could remove JSGlobalObject::defineOwnProperty() though...
Yeah :)
> > *** This bug has been marked as a duplicate of
bug 203456
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug