Skip to content
  • weinig@apple.com's avatar
    Remove the Completion object from JSC, I have never liked it · f41a7da7
    weinig@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=67755
    
    Reviewed by Gavin Barraclough.
    
    ../JavaScriptCore: 
    
    - Removes the Completion object and replaces its use with out parameter exceptions.
    - Remove ComplType and virtual exceptionType() function on JSObject. Replace with
      ClassInfo for InterruptedExecutionError and TerminatedExecutionError.
    
    * API/JSBase.cpp:
    (JSEvaluateScript):
    (JSCheckScriptSyntax):
    * JavaScriptCore.exp:
    * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
    * interpreter/Interpreter.cpp:
    (JSC::Interpreter::throwException):
    * jsc.cpp:
    (functionLoad):
    (functionCheckSyntax):
    (runWithScripts):
    (runInteractive):
    * runtime/Completion.cpp:
    (JSC::checkSyntax):
    (JSC::evaluate):
    * runtime/Completion.h:
    * runtime/ExceptionHelpers.cpp:
    (JSC::InterruptedExecutionError::toString):
    (JSC::TerminatedExecutionError::toString):
    (JSC::createInterruptedExecutionException):
    * runtime/ExceptionHelpers.h:
    (JSC::InterruptedExecutionError::InterruptedEx...
    f41a7da7