Changeset 35245 in webkit for trunk/JavaScriptCore/kjs/JSNotAnObject.h
- Timestamp:
- Jul 18, 2008, 6:44:24 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSNotAnObject.h
r35027 r35245 34 34 namespace KJS { 35 35 36 class JSNotAnObjectErrorStub : public JSObject { 37 public: 38 JSNotAnObjectErrorStub(bool isNull) 39 : m_isNull(isNull) 40 { 41 } 42 bool isNull() const { return m_isNull; } 43 bool isNotAnObjectErrorStub() const { return true; } 44 private: 45 bool m_isNull; 46 }; 47 36 48 // This unholy class is used to allow us to avoid multiple exception checks 37 49 // in certain SquirrelFish opcodes -- effectively it just silently consumes … … 39 51 class JSNotAnObject : public JSObject { 40 52 public: 41 JSNotAnObject(JS Object* exception)53 JSNotAnObject(JSNotAnObjectErrorStub* exception) 42 54 : m_exception(exception) 43 55 { … … 68 80 virtual void getPropertyNames(ExecState*, PropertyNameArray&); 69 81 70 JS Object* m_exception;82 JSNotAnObjectErrorStub* m_exception; 71 83 }; 72 84
Note:
See TracChangeset
for help on using the changeset viewer.