Ignore:
Timestamp:
Jul 13, 2006, 1:56:52 AM (19 years ago)
Author:
ggaren
Message:

Pleasing to Maciej.


  • Renamed JSEvaluate -> JSEvaluateScript, JSCheckSyntax -> JSCheckScriptSyntax
  • Added exception out parameters to JSValueTo* and JSValueIsEqual because they can throw
  • Removed JSObjectGetDescription because it's useless and vague, and JSValueToString/JSValueIsObjectOfClass do a better job, anyway
  • Clarified comments about "IsFunction/Constructor" to indicate that they are true of all functions/constructors, not just those created by JSObjectMake*
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSStringRef.cpp

    r15400 r15404  
    6969    UString::Rep* rep = toJS(string);
    7070    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;
    8371}
    8472
Note: See TracChangeset for help on using the changeset viewer.