Changeset 3009 in webkit for trunk/JavaScriptCore/kjs/function.h


Ignore:
Timestamp:
Dec 11, 2002, 7:59:24 PM (22 years ago)
Author:
mjs
Message:

Reviewed by Don.

  • Add kjsprint global function in Development build for ease of debugging.
  • Print uncaught JavaScript exceptions to the console in Development.
  • Improve wording of exception error messages.
  • kjs/function.cpp: (GlobalFuncImp::call):
  • kjs/function.h:
  • kjs/internal.cpp: (InterpreterImp::initGlobalObject):
  • kjs/interpreter.cpp: (Interpreter::evaluate):
  • kjs/nodes.cpp: (NewExprNode::evaluate): (FunctionCallNode::evaluate): (RelationalNode::evaluate):
File:
1 edited

Legend:

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

    r2883 r3009  
    127127    virtual Value call(ExecState *exec, Object &thisObj, const List &args);
    128128    virtual CodeType codeType() const;
    129     enum { Eval, ParseInt, ParseFloat, IsNaN, IsFinite, Escape, UnEscape };
     129    enum { Eval, ParseInt, ParseFloat, IsNaN, IsFinite, Escape, UnEscape
     130#if !NDEBUG
     131           , KJSPrint
     132#endif
     133};
    130134  private:
    131135    int id;
Note: See TracChangeset for help on using the changeset viewer.