WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
93570
Test case of Object.defineProperty for the non-configurable property should be corrected
https://bugs.webkit.org/show_bug.cgi?id=93570
Summary
Test case of Object.defineProperty for the non-configurable property should b...
Hojong Han
Reported
2012-08-08 18:57:41 PDT
LayoutTests/fast/js/script-tests/Object-defineProperty.js ============================================================ function testObject() { // Test case from
https://bugs.webkit.org/show_bug.cgi?id=38636
... skip ... // Test case from
https://bugs.webkit.org/show_bug.cgi?id=48911
Object.defineProperty(Object.getPrototypeOf(anObj), 'slot5', {get: function() { return this._Slot5; }, set: function(v) { this._Slot5 = v; }, configurable: false}); ... skip ... } var anObj = {}; testObject(); var anObj = this; testObject(); ============================================================ "slot5" is set as non-configurable at the first call of testObject() and it will be tried to be set again at the second call. I think it's right operation that throws exception at the second call, but Object-defineProperty-expected.txt doesn't reflect this.
Attachments
Add attachment
proposed patch, testcase, etc.
Hojong Han
Comment 1
2012-08-27 22:06:15 PDT
============================================================ var anObj = {}; testObject(); var anObj = this; testObject(); ============================================================ "this" is different between browser and standalone where the script is running.
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