Changeset 121700 in webkit


Ignore:
Timestamp:
Jul 2, 2012 12:25:59 PM (12 years ago)
Author:
barraclough@apple.com
Message:

Array.prototype.pop should throw if property is not configurable
https://bugs.webkit.org/show_bug.cgi?id=75788

Rubber Stamped by Oliver Hunt.

No real bug here any more, but the error we throw sometimes has a misleading message.

  • runtime/JSArray.cpp:

(JSC::JSArray::pop):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r121633 r121700  
     12012-07-02  Gavin Barraclough  <barraclough@apple.com>
     2
     3        Array.prototype.pop should throw if property is not configurable
     4        https://bugs.webkit.org/show_bug.cgi?id=75788
     5
     6        Rubber Stamped by Oliver Hunt.
     7
     8        No real bug here any more, but the error we throw sometimes has a misleading message.
     9 
     10        * runtime/JSArray.cpp:
     11        (JSC::JSArray::pop):
     12
    1132012-06-29  Filip Pizlo  <fpizlo@apple.com>
    214
  • trunk/Source/JavaScriptCore/runtime/JSArray.cpp

    r119633 r121700  
    12591259        return jsUndefined();
    12601260    // Call the [[Delete]] internal method of O with arguments indx and true.
    1261     deletePropertyByIndex(this, exec, index);
     1261    if (!deletePropertyByIndex(this, exec, index)) {
     1262        throwTypeError(exec, "Unable to delete property.");
     1263        return jsUndefined();
     1264    }
    12621265    // Call the [[Put]] internal method of O with arguments "length", indx, and true.
    12631266    setLength(exec, index, true);
Note: See TracChangeset for help on using the changeset viewer.