Summary: | Class's __proto__ should not be writable | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | JavaScriptCore | Assignee: | 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 |
Description
Ryosuke Niwa
2015-11-11 15:18: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. This is not valid anymore in the spec so... closing err... valid => true |