Ignore:
Timestamp:
Jul 7, 2006, 1:39:38 PM (19 years ago)
Author:
ggaren
Message:

Reviewed by John, mocked by Darin.


  • Changed JSEvaluate to take a JSObjectRef instead of a JSValueRef as "this," since "this" must be an object.
  • API/JSContextRef.cpp: (JSEvaluate):
  • API/JSContextRef.h:
File:
1 edited

Legend:

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

    r15168 r15212  
    5050  @param context            execution context to use
    5151  @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"
     52  @param thisObject         the object to use as "this," or NULL to use the global object as "this."
    5353  @param sourceURL          URL to the file containing the JavaScript, or NULL - this is only used for error reporting
    5454  @param startingLineNumber the JavaScript's starting line number in the file located at sourceURL - this is only used for error reporting
     
    5656  @result                   result of evaluation, or NULL if an uncaught exception was thrown
    5757*/
    58 JSValueRef JSEvaluate(JSContextRef context, JSStringBufferRef script, JSValueRef thisValue, JSStringBufferRef sourceURL, int startingLineNumber, JSValueRef* exception);
     58JSValueRef JSEvaluate(JSContextRef context, JSStringBufferRef script, JSObjectRef thisObject, JSStringBufferRef sourceURL, int startingLineNumber, JSValueRef* exception);
    5959
    6060/*!
Note: See TracChangeset for help on using the changeset viewer.