Changeset 2738 in webkit for trunk/JavaScriptCore/kjs/interpreter.h
- Timestamp:
- Nov 18, 2002, 2:49:26 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.h
r1024 r2738 369 369 friend class GlobalFuncImp; 370 370 public: 371 virtual ~ExecState();372 373 371 /** 374 372 * Returns the interpreter associated with this execution state … … 376 374 * @return The interpreter executing the script 377 375 */ 378 Interpreter *interpreter() const ;376 Interpreter *interpreter() const { return _interpreter; } 379 377 380 378 /** … … 383 381 * @return The current execution state context 384 382 */ 385 const Context context() const ;386 387 void setException(const Value &e) ;388 void clearException() ;389 Value exception() const ;390 bool hadException() const ;383 const Context context() const { return _context; } 384 385 void setException(const Value &e) { _exception = e; } 386 void clearException() { _exception = Value(); } 387 Value exception() const { return _exception; } 388 bool hadException() const { return !_exception.isNull(); } 391 389 392 390 private: 393 ExecState(Interpreter *interp, ContextImp *con); 394 ExecStateImp *rep; 391 ExecState(Interpreter *interp, ContextImp *con) 392 : _interpreter(interp), _context(con) { } 393 Interpreter *_interpreter; 394 ContextImp *_context; 395 Value _exception; 395 396 }; 396 397
Note:
See TracChangeset
for help on using the changeset viewer.