Ignore:
Timestamp:
Jul 14, 2006, 10:41:10 AM (19 years ago)
Author:
ggaren
Message:

Reviewed by Beth.


Moved JSCheckScriptSyntax, JSEvaluateScript, and JSGarbageCollect into
JSBase.h/.cpp. They don't belong in the value-specific or context-specific
files because they're not part of the value or context implementations.

  • API/JSBase.h:
  • API/JSContextRef.cpp: (JSContextGetGlobalObject):
  • API/JSContextRef.h:
  • API/JSValueRef.cpp: (JSValueUnprotect):
  • API/JSValueRef.h:
  • JavaScriptCore.xcodeproj/project.pbxproj:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSContextRef.h

    r15404 r15428  
    6363JSObjectRef JSContextGetGlobalObject(JSContextRef context);
    6464
    65 // Evaluation
    66 /*!
    67 @function
    68 @abstract                 Evaluates a string of JavaScript.
    69 @param context            The execution context to use.
    70 @param script             A JSString containing the script to evaluate.
    71 @param thisObject         The object to use as "this," or NULL to use the global object as "this."
    72 @param sourceURL          A JSString containing a URL for the script's source file. This is only used when reporting exceptions. Pass NULL if you do not care to include source file information in exceptions.
    73 @param startingLineNumber An integer value specifying the script's starting line number in the file located at sourceURL. This is only used when reporting exceptions.
    74 @param exception          A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.
    75 @result                   The JSValue that results from evaluating script, or NULL if an exception is thrown.
    76 */
    77 JSValueRef JSEvaluateScript(JSContextRef context, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);
    78 
    79 /*!
    80 @function JSCheckScriptSyntax
    81 @abstract                 Checks for syntax errors in a string of JavaScript.
    82 @param context            The execution context to use.
    83 @param script             A JSString containing the script to check for syntax errors.
    84 @param sourceURL          A JSString containing a URL for the script's source file. This is only used when reporting exceptions. Pass NULL if you do not care to include source file information in exceptions.
    85 @param startingLineNumber An integer value specifying the script's starting line number in the file located at sourceURL. This is only used when reporting exceptions.
    86 @param exception          A pointer to a JSValueRef in which to store a syntax error exception, if any. Pass NULL if you do not care to store a syntax error exception.
    87 @result                   true if the script is syntactically correct, otherwise false.
    88 */
    89 bool JSCheckScriptSyntax(JSContextRef context, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);
    90 
    9165#ifdef __cplusplus
    9266}
Note: See TracChangeset for help on using the changeset viewer.