Changeset 43130 in webkit for trunk/JavaScriptCore/API/JSCallbackConstructor.cpp
- Timestamp:
- May 1, 2009, 5:25:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackConstructor.cpp
r42989 r43130 62 62 Vector<JSValueRef, 16> arguments(argumentCount); 63 63 for (int i = 0; i < argumentCount; i++) 64 arguments[i] = toRef(args.at(i)); 65 66 JSLock::DropAllLocks dropAllLocks(exec); 67 return toJS(callback(ctx, constructorRef, argumentCount, arguments.data(), toRef(exec->exceptionSlot()))); 64 arguments[i] = toRef(exec, args.at(i)); 65 66 JSValueRef exception = 0; 67 JSObjectRef result; 68 { 69 JSLock::DropAllLocks dropAllLocks(exec); 70 result = callback(ctx, constructorRef, argumentCount, arguments.data(), &exception); 71 } 72 if (exception) 73 exec->setException(toJS(exec, exception)); 74 return toJS(result); 68 75 } 69 76
Note:
See TracChangeset
for help on using the changeset viewer.