Changeset 197817 in webkit


Ignore:
Timestamp:
Mar 8, 2016, 4:21:26 PM (9 years ago)
Author:
mark.lam@apple.com
Message:

Implement Function.name support for getters/setters and inferring name of function properties.
https://bugs.webkit.org/show_bug.cgi?id=154865

Rubber-stamped by Joseph Pecoraro.

Follow up to the fix for this bug: adding a few small clean-ups for issues Joe
pointed out in the bug.

  • runtime/JSBoundSlotBaseFunction.cpp:

(JSC::JSBoundSlotBaseFunction::create):

  • runtime/JSCJSValue.cpp:

(JSC::JSValue::putToPrimitiveByIndex):

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r197816 r197817  
     12016-03-08  Mark Lam  <mark.lam@apple.com>
     2
     3        Implement Function.name support for getters/setters and inferring name of function properties.
     4        https://bugs.webkit.org/show_bug.cgi?id=154865
     5
     6        Rubber-stamped by Joseph Pecoraro.
     7
     8        Follow up to the fix for this bug: adding a few small clean-ups for issues Joe
     9        pointed out in the bug.
     10
     11        * runtime/JSBoundSlotBaseFunction.cpp:
     12        (JSC::JSBoundSlotBaseFunction::create):
     13        * runtime/JSCJSValue.cpp:
     14        (JSC::JSValue::putToPrimitiveByIndex):
     15
    1162016-03-08  Oliver Hunt  <oliver@apple.com>
    217
  • trunk/Source/JavaScriptCore/runtime/JSBoundSlotBaseFunction.cpp

    r197815 r197817  
    6868
    6969    // Can't do this during initialization because getHostFunction might do a GC allocation.
    70     String prefix = (type == Type::Getter) ? "get " : "set ";
     70    const char* prefix = (type == Type::Getter) ? "get " : "set ";
    7171    function->finishCreation(vm, executable, boundSlotBase, getterSetter, makeString(prefix, name));
    7272    return function;
  • trunk/Source/JavaScriptCore/runtime/JSCJSValue.cpp

    r197815 r197817  
    208208        return;
    209209   
    210     if (shouldThrow && !exec->hadException())
    211210    if (shouldThrow)
    212211        throwTypeError(exec, StrictModeReadonlyPropertyWriteError);
Note: See TracChangeset for help on using the changeset viewer.