Changeset 15428 in webkit for trunk/JavaScriptCore/API/JSContextRef.h
- Timestamp:
- Jul 14, 2006, 10:41:10 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.h
r15404 r15428 63 63 JSObjectRef JSContextGetGlobalObject(JSContextRef context); 64 64 65 // Evaluation66 /*!67 @function68 @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 JSCheckScriptSyntax81 @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 91 65 #ifdef __cplusplus 92 66 }
Note:
See TracChangeset
for help on using the changeset viewer.