Ignore:
Timestamp:
Jul 5, 2006, 11:07:57 AM (19 years ago)
Author:
ggaren
Message:

RS by Beth.


Moved some code around for more logical file separation.

  • API/JSBase.h:
  • API/JSContextRef.h:
  • API/JSObjectRef.cpp:
  • API/JSValueRef.cpp: (JSValueToObject):
  • API/JSValueRef.h:
File:
1 edited

Legend:

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

    r15149 r15165  
    4444void JSContextClearException(JSContextRef context);
    4545   
     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*/
     58JSValueRef 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*/
     71bool JSCheckSyntax(JSContextRef context, JSCharBufferRef script, JSCharBufferRef sourceURL, int startingLineNumber, JSValueRef* exception);
     72
    4673#ifdef __cplusplus
    4774}
Note: See TracChangeset for help on using the changeset viewer.