Changeset 15404 in webkit for trunk/JavaScriptCore/API/JSStringRef.cpp
- Timestamp:
- Jul 13, 2006, 1:56:52 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSStringRef.cpp
r15400 r15404 69 69 UString::Rep* rep = toJS(string); 70 70 rep->deref(); 71 }72 73 JSStringRef JSValueToStringCopy(JSContextRef context, JSValueRef value)74 {75 JSLock lock;76 JSValue* jsValue = toJS(value);77 ExecState* exec = toJS(context);78 79 JSStringRef stringRef = toRef(jsValue->toString(exec).rep()->ref());80 if (exec->hadException())81 exec->clearException();82 return stringRef;83 71 } 84 72
Note:
See TracChangeset
for help on using the changeset viewer.