Changeset 15165 in webkit for trunk/JavaScriptCore/API/JSValueRef.cpp
- Timestamp:
- Jul 5, 2006, 11:07:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSValueRef.cpp
r15149 r15165 196 196 } 197 197 198 JSObjectRef JSValueToObject(JSContextRef context, JSValueRef value) 199 { 200 JSLock lock; 201 ExecState* exec = toJS(context); 202 JSValue* jsValue = toJS(value); 203 204 JSObjectRef objectRef = toRef(jsValue->toObject(exec)); 205 if (exec->hadException()) { 206 exec->clearException(); 207 objectRef = NULL; 208 } 209 return objectRef; 210 } 211 198 212 void JSGCProtect(JSValueRef value) 199 213 {
Note:
See TracChangeset
for help on using the changeset viewer.