Changeset 15163 in webkit for trunk/JavaScriptCore/API/JSBase.h
- Timestamp:
- Jul 5, 2006, 9:52:54 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.h
r15149 r15163 53 53 @param sourceURL URL to the file containing the JavaScript, or NULL - this is only used for error reporting 54 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, orNULL55 @param exception pointer to a JSValueRef in which to store an uncaught exception, if any; can be NULL 56 56 @result result of evaluation, or NULL if an uncaught exception was thrown 57 57 */ … … 60 60 /*! 61 61 @function JSCheckSyntax 62 Checks for syntax errors in a string of JavaScript code 63 @param context execution context to use 64 @param script a string containing the script source code 65 @result true if the script is syntactically correct, false otherwise 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 66 69 67 70 */ 68 bool JSCheckSyntax(JSContextRef context, JSCharBufferRef script );71 bool JSCheckSyntax(JSContextRef context, JSCharBufferRef script, JSCharBufferRef sourceURL, int startingLineNumber, JSValueRef* exception); 69 72 70 73 // Garbage collection
Note:
See TracChangeset
for help on using the changeset viewer.