Changeset 60075 in webkit for trunk/JavaScriptCore/runtime/ExceptionHelpers.cpp
- Timestamp:
- May 24, 2010, 11:46:49 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/ExceptionHelpers.cpp
r57192 r60075 183 183 JSObject* createNotAnObjectError(ExecState* exec, JSNotAnObjectErrorStub* error, unsigned bytecodeOffset, CodeBlock* codeBlock) 184 184 { 185 // Both op_c onstructand op_instanceof require a use of op_get_by_id to get185 // Both op_create_this and op_instanceof require a use of op_get_by_id to get 186 186 // the prototype property from an object. The exception messages for exceptions 187 187 // thrown by these instances op_get_by_id need to reflect this. 188 188 OpcodeID followingOpcodeID; 189 189 if (codeBlock->getByIdExceptionInfoForBytecodeOffset(exec, bytecodeOffset, followingOpcodeID)) { 190 ASSERT(followingOpcodeID == op_c onstruct|| followingOpcodeID == op_instanceof);191 if (followingOpcodeID == op_c onstruct)190 ASSERT(followingOpcodeID == op_create_this || followingOpcodeID == op_instanceof); 191 if (followingOpcodeID == op_create_this) 192 192 return createNotAConstructorError(exec, error->isNull() ? jsNull() : jsUndefined(), bytecodeOffset, codeBlock); 193 193 return createInvalidParamError(exec, "instanceof", error->isNull() ? jsNull() : jsUndefined(), bytecodeOffset, codeBlock);
Note:
See TracChangeset
for help on using the changeset viewer.