Changeset 80684 in webkit for trunk/Source/JavaScriptCore/jit/JITStubs.cpp
- Timestamp:
- Mar 9, 2011, 6:22:50 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/JITStubs.cpp
r80598 r80684 3070 3070 STUB_INIT_STACK_FRAME(stackFrame); 3071 3071 3072 return new (stackFrame.globalData) RegExpObject(stackFrame.callFrame->lexicalGlobalObject(), stackFrame.callFrame->lexicalGlobalObject()->regExpStructure(), stackFrame.args[0].regExp()); 3072 CallFrame* callFrame = stackFrame.callFrame; 3073 3074 RegExp* regExp = stackFrame.args[0].regExp(); 3075 if (!regExp->isValid()) { 3076 stackFrame.globalData->exception = createSyntaxError(callFrame, "Invalid flags supplied to RegExp constructor."); 3077 VM_THROW_EXCEPTION(); 3078 } 3079 3080 return new (stackFrame.globalData) RegExpObject(stackFrame.callFrame->lexicalGlobalObject(), stackFrame.callFrame->lexicalGlobalObject()->regExpStructure(), regExp); 3073 3081 } 3074 3082
Note:
See TracChangeset
for help on using the changeset viewer.