Changeset 15481 in webkit for trunk/JavaScriptCore/API/JSBase.h
- Timestamp:
- Jul 17, 2006, 1:14:39 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.h
r15480 r15481 68 68 @function 69 69 @abstract Evaluates a string of JavaScript. 70 @param c ontextThe execution context to use.70 @param ctx The execution context to use. 71 71 @param script A JSString containing the script to evaluate. 72 72 @param thisObject The object to use as "this," or NULL to use the global object as "this." … … 76 76 @result The JSValue that results from evaluating script, or NULL if an exception is thrown. 77 77 */ 78 JSValueRef JSEvaluateScript(JSContextRef c ontext, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);78 JSValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 79 79 80 80 /*! 81 81 @function JSCheckScriptSyntax 82 82 @abstract Checks for syntax errors in a string of JavaScript. 83 @param c ontextThe execution context to use.83 @param ctx The execution context to use. 84 84 @param script A JSString containing the script to check for syntax errors. 85 85 @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. … … 88 88 @result true if the script is syntactically correct, otherwise false. 89 89 */ 90 bool JSCheckScriptSyntax(JSContextRef c ontext, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);90 bool JSCheckScriptSyntax(JSContextRef ctx, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 91 91 92 92 /*! 93 93 @function 94 94 @abstract Performs a JavaScript garbage collection. 95 @param ctx The execution context to use. 95 96 @discussion JavaScript values that are on the machine stack, in a register, 96 97 protected by JSValueProtect, set as the global object of an execution context, … … 100 101 collect as needed. 101 102 */ 102 void JSGarbageCollect( void);103 void JSGarbageCollect(JSContextRef ctx); 103 104 104 105 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.