<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [JSC] correctly handle indexed properties in Object.getOwnPropertyDescriptors"
   href="https://bugs.webkit.org/show_bug.cgi?id=155563#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [JSC] correctly handle indexed properties in Object.getOwnPropertyDescriptors"
   href="https://bugs.webkit.org/show_bug.cgi?id=155563">bug 155563</a>
              from <span class="vcard"><a class="email" href="mailto:caitp&#64;igalia.com" title="Caitlin Potter (:caitp) &lt;caitp&#64;igalia.com&gt;"> <span class="fn">Caitlin Potter (:caitp)</span></a>
</span></b>
        <pre>Comment on <span class="bz_obsolete"><a href="attachment.cgi?id=274287&amp;action=diff" name="attach_274287" title="Patch">attachment 274287</a> <a href="attachment.cgi?id=274287&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=274287&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=274287&amp;action=review</a>

<span class="quote">&gt;&gt;&gt; Source/JavaScriptCore/runtime/ObjectConstructor.cpp:253
&gt;&gt;&gt; +        JSObject::put(descriptors, exec, propertyName, fromDescriptor, slot);
&gt;&gt; 
&gt;&gt; You need an exception check here. 
&gt;&gt; An exception check is also needed above
&gt;&gt; after constructEmptyObject(). I suggest
&gt;&gt; caching the VM in a local variable and checking
&gt;&gt; VM.exception()
&gt; 
&gt; per spec, this should not cause an observable error (spec algorithm uses CreateDataProperty), which ignores accessors on the prototype. Is there a model for this behaviour in JSC that permits indexed properties?</span >

I've added a model for `CreateDataProperty()` named `putOwnDataPropertyMayBeIndex` --- an unfortunate name, but does the right thing. Test has been added to verify this.

I've also added the cached reference to `vm()`.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>