[Webkit-unassigned] [Bug 78438] New: Failed strict assignment to __proto__ not throwing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Feb 12 14:18:05 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=78438
Summary: Failed strict assignment to __proto__ not throwing
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: erights at gmail.com
In Version 5.1.2 (7534.52.7, r107511):
> var x = Object.preventExtensions({});
> var y = {};
> function foo(){"use strict"; x.__proto__ = y;}
> Object.getPrototypeOf(x) === Object.prototype
true
> foo()
> Object.getPrototypeOf(x) === Object.prototype
true
The above behavior correctly does not mutate x.__proto__, however, since it is a failed assignment and foo() is strict, the call to foo() should have thrown an exception. Instead it failed silently.
--
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