Bug 93570

Summary: Test case of Object.defineProperty for the non-configurable property should be corrected
Product: WebKit Reporter: Hojong Han <hojong.han>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: barraclough
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: Linux   

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
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.