Changeset 10496 in webkit for trunk/JavaScriptCore/kjs/nodes.h


Ignore:
Timestamp:
Sep 8, 2005, 6:19:19 PM (20 years ago)
Author:
darin
Message:
  • fixed overloaded versions of throwError so that they substitute *all* expected parameters into the message string -- some versions used to skip parameters, resulting in "%s" being printed in the error message.

Reviewed by Geoff.

  • kjs/nodes.h: Updated declarations to use "const &" and not to name parameters
  • kjs/nodes.cpp: (Node::throwError): Updated to match above and add one missing call to substitute.
File:
1 edited

Legend:

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

    r10416 r10496  
    9999  protected:
    100100    ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg);
    101     ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, Node *expr);
    102     ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, Identifier label);
    103     ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, Identifier ident);
    104     ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, Node *e1, Node *e2);
    105     ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *v, Node *expr, Identifier ident);
     101    ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, Node *);
     102    ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, const Identifier &);
     103    ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, const Identifier &);
     104    ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, Node *, Node *);
     105    ValueImp *throwError(ExecState *exec, ErrorType e, const char *msg, ValueImp *, Node *, const Identifier &);
    106106
    107107    void setExceptionDetailsIfNeeded(ExecState *exec);
Note: See TracChangeset for help on using the changeset viewer.