Ignore:
Timestamp:
Jul 5, 2006, 9:52:54 AM (19 years ago)
Author:
ggaren
Message:

JavaScriptCore:

Reviewed by Maciej.

  • Return syntax error in JSCheckSyntax through a JSValueRef* exception argument


  • API/JSBase.h:
  • API/JSContextRef.cpp: (JSCheckSyntax):
  • API/testapi.c: (main):
  • JavaScriptCore.exp:
  • kjs/interpreter.cpp: (KJS::Interpreter::checkSyntax):
  • kjs/interpreter.h:

JavaScriptGlue:

Reviewed by Maciej.


  • JSRun.cpp: (JSRun::CheckSyntax): Updated to use new checkSyntax syntax in JSC.
  • JavaScriptGlue.xcodeproj/project.pbxproj:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/interpreter.h

    r14904 r15163  
    101101     *
    102102     * @param code The code to check
    103      * @return true if there were no syntax errors in the code, otherwise false
    104      */
    105     bool checkSyntax(const UString &code);
     103     * @return A normal completion if there were no syntax errors in the code,
     104     * otherwise a throw completion with the syntax error as its value.
     105     */
     106    Completion checkSyntax(const UString& sourceURL, int startingLineNumber, const UString& code);
     107    Completion checkSyntax(const UString& sourceURL, int startingLineNumber, const UChar* code, int codeLength);
    106108
    107109    /**
Note: See TracChangeset for help on using the changeset viewer.