Changeset 15165 in webkit for trunk/JavaScriptCore/API/JSContextRef.h
- Timestamp:
- Jul 5, 2006, 11:07:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.h
r15149 r15165 44 44 void JSContextClearException(JSContextRef context); 45 45 46 // Evaluation 47 /*! 48 @function JSEvaluate 49 Evaluates a string of JavaScript 50 @param context execution context to use 51 @param script a character buffer containing the JavaScript to evaluate 52 @param thisValue object to use as "this," or NULL to use the global object as "this" 53 @param sourceURL URL to the file containing the JavaScript, or NULL - this is only used for error reporting 54 @param startingLineNumber the JavaScript's starting line number in the file located at sourceURL - this is only used for error reporting 55 @param exception pointer to a JSValueRef in which to store an uncaught exception, if any; can be NULL 56 @result result of evaluation, or NULL if an uncaught exception was thrown 57 */ 58 JSValueRef JSEvaluate(JSContextRef context, JSCharBufferRef script, JSValueRef thisValue, JSCharBufferRef sourceURL, int startingLineNumber, JSValueRef* exception); 59 60 /*! 61 @function JSCheckSyntax 62 Check for syntax errors in a string of JavaScript 63 @param context execution context to use 64 @param script a character buffer containing the JavaScript to evaluate 65 @param sourceURL URL to the file containing the JavaScript, or NULL - this is only used for error reporting 66 @param startingLineNumber the JavaScript's starting line number in the file located at sourceURL - this is only used for error reporting 67 @param exception pointer to a JSValueRef in which to store a syntax error, if any; can be NULL 68 @result true if the script is syntactically correct, false otherwise 69 70 */ 71 bool JSCheckSyntax(JSContextRef context, JSCharBufferRef script, JSCharBufferRef sourceURL, int startingLineNumber, JSValueRef* exception); 72 46 73 #ifdef __cplusplus 47 74 }
Note:
See TracChangeset
for help on using the changeset viewer.