Changeset 36604 in webkit for trunk/JavaScriptCore/VM/ExceptionHelpers.cpp
- Timestamp:
- Sep 17, 2008, 11:20:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/ExceptionHelpers.cpp
r36263 r36604 32 32 #include "CodeBlock.h" 33 33 #include "ExecState.h" 34 #include "nodes.h"35 34 #include "JSObject.h" 36 35 #include "JSNotAnObject.h" 36 #include "Machine.h" 37 #include "nodes.h" 37 38 38 39 namespace JSC { … … 148 149 } 149 150 150 JS Value* createInvalidParamError(ExecState* exec, const char* op, JSValue* value, const Instruction* vPC, CodeBlock* codeBlock)151 JSObject* createInvalidParamError(ExecState* exec, const char* op, JSValue* value, const Instruction* vPC, CodeBlock* codeBlock) 151 152 { 152 153 UString message = "not a valid argument for '"; … … 166 167 } 167 168 168 JS Value* createNotAConstructorError(ExecState* exec, JSValue* value, const Instruction* vPC, CodeBlock* codeBlock)169 JSObject* createNotAConstructorError(ExecState* exec, JSValue* value, const Instruction* vPC, CodeBlock* codeBlock) 169 170 { 170 171 int startOffset = 0; … … 208 209 JSObject* createNotAnObjectError(ExecState* exec, JSNotAnObjectErrorStub* error, const Instruction* vPC, CodeBlock* codeBlock) 209 210 { 211 if (vPC[8].u.opcode == Machine::getOpcode(op_instanceof)) 212 return createInvalidParamError(exec, "instanceof", error->isNull() ? jsNull() : jsUndefined(), vPC, codeBlock); 213 if (vPC[8].u.opcode == Machine::getOpcode(op_construct)) 214 return createNotAConstructorError(exec, error->isNull() ? jsNull() : jsUndefined(), vPC, codeBlock); 215 210 216 int startOffset = 0; 211 217 int endOffset = 0;
Note:
See TracChangeset
for help on using the changeset viewer.