Changeset 223584 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
- Timestamp:
- Oct 17, 2017, 4:34:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalObjectFunctions.cpp
r223523 r223584 65 65 namespace JSC { 66 66 67 const char* const ObjectProtoCalledOnNullOrUndefinedError = "Object.prototype.__proto__ called on null or undefined";67 static const char* const ObjectProtoCalledOnNullOrUndefinedError = "Object.prototype.__proto__ called on null or undefined"; 68 68 69 69 template<unsigned charactersCount> … … 707 707 JSValue thisValue = exec->thisValue().toThis(exec, StrictMode); 708 708 if (thisValue.isUndefinedOrNull()) 709 return throwVM Error(exec, scope, createNotAnObjectError(exec, thisValue));709 return throwVMTypeError(exec, scope, ASCIILiteral(ObjectProtoCalledOnNullOrUndefinedError)); 710 710 711 711 JSObject* thisObject = jsDynamicCast<JSObject*>(vm, thisValue); 712 712 if (!thisObject) { 713 JSObject* prototype = thisValue.synthesizePrototype(exec);713 JSObject* prototype = exec->thisValue().synthesizePrototype(exec); 714 714 EXCEPTION_ASSERT(!!scope.exception() == !prototype); 715 715 if (UNLIKELY(!prototype))
Note:
See TracChangeset
for help on using the changeset viewer.