Changeset 9338 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp


Ignore:
Timestamp:
Jun 8, 2005, 12:09:50 AM (20 years ago)
Author:
mjs
Message:

Change by Mark Rowe <[email protected]>
Reviewed by me.

  • kjs/nodes.cpp: Include source file and line number when making exception in KJS_CHECKEXCEPTIONVALUE.
File:
1 edited

Legend:

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

    r9078 r9338  
    7474
    7575#define KJS_CHECKEXCEPTIONVALUE \
    76   if (exec->hadException()) \
     76  if (exec->hadException()) {\
     77    Object exception = exec->exception().toObject(exec); \
     78    exception.put(exec, "line", Number(this->line)); \
     79    exception.put(exec, "sourceURL", String(this->sourceURL)); \
    7780    return exec->exception(); \
     81  }\
    7882  if (Collector::outOfMemory()) \
    7983    return Undefined(); // will be picked up by KJS_CHECKEXCEPTION
Note: See TracChangeset for help on using the changeset viewer.