<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>151160</bug_id>
          
          <creation_ts>2015-11-11 15:18:50 -0800</creation_ts>
          <short_desc>Class&apos;s __proto__ should not be writable</short_desc>
          <delta_ts>2015-12-16 14:21:32 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>140491</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>keith_miller</cc>
    
    <cc>saam</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1141246</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-11-11 15:18:50 -0800</bug_when>
    <thetext>Fix the FIXME in ClassExprNode::emitBytecode:
// FIXME: Make the prototype non-configurable &amp; non-writable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1141247</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2015-11-11 15:19:50 -0800</bug_when>
    <thetext>class A {}
class B extends A {
    constructor() {
        super();
    }
}
new B;
class C {
    constructor() {
        alert(&apos;FAIL&apos;)
    }
}
B.__proto__ = C;
new B;

should never alert FAIL.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1149750</commentid>
    <comment_count>2</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2015-12-16 14:21:08 -0800</bug_when>
    <thetext>This is not valid anymore in the spec so... closing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1149751</commentid>
    <comment_count>3</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2015-12-16 14:21:32 -0800</bug_when>
    <thetext>err... valid =&gt; true</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>