Changeset 15317 in webkit for trunk/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- Jul 10, 2006, 5:26:25 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.cpp
r15310 r15317 102 102 return true; 103 103 } 104 105 JSValueRef JSContextGetException(JSContextRef context)106 {107 ExecState* exec = toJS(context);108 return toRef(exec->exception());109 }110 111 void JSContextClearException(JSContextRef context)112 {113 ExecState* exec = toJS(context);114 if (exec->hadException())115 exec->clearException();116 }117 118 void JSContextSetException(JSContextRef context, JSValueRef value)119 {120 ExecState* exec = toJS(context);121 JSValue* jsValue = toJS(value);122 exec->setException(jsValue);123 }
Note:
See TracChangeset
for help on using the changeset viewer.