Bug 93570
Summary: | Test case of Object.defineProperty for the non-configurable property should be corrected | ||
---|---|---|---|
Product: | WebKit | Reporter: | Hojong Han <hojong.han> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Normal | CC: | barraclough |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Other | ||
OS: | Linux |
Hojong Han
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
============================================================
var anObj = {};
testObject();
var anObj = this;
testObject();
============================================================
"this" is different between browser and standalone where the script is running.