Bug 151160

Summary: Class's __proto__ should not be writable
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: keith_miller, saam, ysuzuki
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 140491    

Ryosuke Niwa
Reported 2015-11-11 15:18:50 PST
Fix the FIXME in ClassExprNode::emitBytecode: // FIXME: Make the prototype non-configurable & non-writable.
Attachments
Ryosuke Niwa
Comment 1 2015-11-11 15:19:50 PST
class A {} class B extends A { constructor() { super(); } } new B; class C { constructor() { alert('FAIL') } } B.__proto__ = C; new B; should never alert FAIL.
Keith Miller
Comment 2 2015-12-16 14:21:08 PST
This is not valid anymore in the spec so... closing
Keith Miller
Comment 3 2015-12-16 14:21:32 PST
err... valid => true
Note You need to log in before you can comment on or make changes to this bug.