[Webkit-unassigned] [Bug 93540] New: ES5: Non writable properties should not be overridable
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 8 15:49:06 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=93540
Summary: ES5: Non writable properties should not be overridable
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: arv at chromium.org
CC: oliver at apple.com, barraclough at apple.com
var descr = Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'NETWORK_NO_SOURCE');
shouldBeFalse('descr.writable');
shouldBeFalse('descr.configurable');
var el = document.createElement('audio');
shouldBeTrue('el instanceof HTMLMediaElement');
// No override
shouldBeUndefined('Object.getOwnPropertyDescriptor(el, "NETWORK_NO_SOURCE")');
// No override
shouldBeUndefined('Object.getOwnPropertyDescriptor(el.__proto__, "NETWORK_NO_SOURCE")');
// Should be ignored since not writable on the prototype chain
el.NETWORK_NO_SOURCE = 42;
shouldBe('el.NETWORK_NO_SOURCE', '3');
The invalid test is media/network-no-source-const-shadow.html
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list