Changeset 164136 in webkit for trunk/Source/JavaScriptCore/API/ObjCCallbackFunction.mm
- Timestamp:
- Feb 14, 2014, 2:44:52 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/ObjCCallbackFunction.mm
r163590 r164136 130 130 } 131 131 132 *exception = toRef(JSC::createTypeError(toJS(contextRef), "Argument does not match Objective-C Class"));132 *exception = toRef(JSC::createTypeError(toJS(contextRef), ASCIILiteral("Argument does not match Objective-C Class"))); 133 133 } 134 134 … … 497 497 498 498 if (!JSValueIsObject(contextRef, result)) { 499 *exception = toRef(JSC::createTypeError(toJS(contextRef), "Objective-C blocks called as constructors must return an object."));499 *exception = toRef(JSC::createTypeError(toJS(contextRef), ASCIILiteral("Objective-C blocks called as constructors must return an object."))); 500 500 return 0; 501 501 } … … 563 563 target = [m_instanceClass alloc]; 564 564 if (!target || ![target isKindOfClass:m_instanceClass]) { 565 *exception = toRef(JSC::createTypeError(toJS(contextRef), "self type check failed for Objective-C instance method"));565 *exception = toRef(JSC::createTypeError(toJS(contextRef), ASCIILiteral("self type check failed for Objective-C instance method"))); 566 566 return JSValueMakeUndefined(contextRef); 567 567 } … … 573 573 target = tryUnwrapObjcObject(contextRef, thisObject); 574 574 if (!target || ![target isKindOfClass:m_instanceClass]) { 575 *exception = toRef(JSC::createTypeError(toJS(contextRef), "self type check failed for Objective-C instance method"));575 *exception = toRef(JSC::createTypeError(toJS(contextRef), ASCIILiteral("self type check failed for Objective-C instance method"))); 576 576 return JSValueMakeUndefined(contextRef); 577 577 }
Note:
See TracChangeset
for help on using the changeset viewer.