Ignore:
Timestamp:
Oct 17, 2017, 4:34:29 PM (8 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r223523.

A test for this change is failing on debug JSC bots.

Reverted changeset:

"[JSC] proto getter should be fast"
https://bugs.webkit.org/show_bug.cgi?id=178067
https://trac.webkit.org/changeset/223523

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp

    r223523 r223584  
    6565namespace JSC {
    6666
    67 const char* const ObjectProtoCalledOnNullOrUndefinedError = "Object.prototype.__proto__ called on null or undefined";
     67static const char* const ObjectProtoCalledOnNullOrUndefinedError = "Object.prototype.__proto__ called on null or undefined";
    6868
    6969template<unsigned charactersCount>
     
    707707    JSValue thisValue = exec->thisValue().toThis(exec, StrictMode);
    708708    if (thisValue.isUndefinedOrNull())
    709         return throwVMError(exec, scope, createNotAnObjectError(exec, thisValue));
     709        return throwVMTypeError(exec, scope, ASCIILiteral(ObjectProtoCalledOnNullOrUndefinedError));
    710710
    711711    JSObject* thisObject = jsDynamicCast<JSObject*>(vm, thisValue);
    712712    if (!thisObject) {
    713         JSObject* prototype = thisValue.synthesizePrototype(exec);
     713        JSObject* prototype = exec->thisValue().synthesizePrototype(exec);
    714714        EXCEPTION_ASSERT(!!scope.exception() == !prototype);
    715715        if (UNLIKELY(!prototype))
Note: See TracChangeset for help on using the changeset viewer.