WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
UNCONFIRMED
94912
defineProperty to global cached variable on global object does not effect
https://bugs.webkit.org/show_bug.cgi?id=94912
Summary
defineProperty to global cached variable on global object does not effect
Yusuke Suzuki
Reported
2012-08-24 01:15:49 PDT
Currently JSGlobalObject::defineOwnProperty doesn't handle variables cached as global register correctly. So for example, // test.js var i = 0; print(i); // 0 print(this.i); // 0 Object.defineProperty(this, 'i', { value: 1 }); print(i); // 0 print(this.i); // 1 $ jsc test.js To fix this, we should store defined value to global register correctly.
Attachments
Patch
(7.77 KB, patch)
2012-08-24 01:47 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from gce-cr-linux-06
(675.37 KB, application/zip)
2012-08-24 03:02 PDT
,
WebKit Review Bot
no flags
Details
Patch
(9.09 KB, patch)
2012-08-24 03:28 PDT
,
Yusuke Suzuki
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yusuke Suzuki
Comment 1
2012-08-24 01:47:50 PDT
Created
attachment 160359
[details]
Patch
WebKit Review Bot
Comment 2
2012-08-24 03:02:22 PDT
Comment on
attachment 160359
[details]
Patch
Attachment 160359
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/13574705
New failing tests: fast/js/global-defineProperty.html
WebKit Review Bot
Comment 3
2012-08-24 03:02:25 PDT
Created
attachment 160370
[details]
Archive of layout-test-results from gce-cr-linux-06 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-06 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Yusuke Suzuki
Comment 4
2012-08-24 03:27:23 PDT
Oops, I'll add expected file for V8 soon.
Yusuke Suzuki
Comment 5
2012-08-24 03:28:40 PDT
Created
attachment 160380
[details]
Patch attached patch v2
Geoffrey Garen
Comment 6
2012-08-24 09:29:11 PDT
Sure would be nice to have a helper function for all these "invalid defineOwnProperty" conditions.
EFL EWS Bot
Comment 7
2013-04-23 10:15:14 PDT
Comment on
attachment 160380
[details]
Patch
Attachment 160380
[details]
did not pass efl-wk2-ews (efl-wk2): Output:
http://webkit-queues.appspot.com/results/199558
Anders Carlsson
Comment 8
2014-02-05 11:11:42 PST
Comment on
attachment 160380
[details]
Patch Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
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