Changeset 27448 in webkit for trunk/JavaScriptCore/kjs/regexp_object.cpp
- Timestamp:
- Nov 5, 2007, 1:27:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/regexp_object.cpp
r27413 r27448 417 417 JSObject *RegExpObjectImp::construct(ExecState *exec, const List &args) 418 418 { 419 JSObject *o = args[0]->getObject(); 419 JSValue* arg0 = args[0]; 420 JSValue* arg1 = args[1]; 421 422 JSObject* o = arg0->getObject(); 420 423 if (o && o->inherits(&RegExpImp::info)) { 421 if (!arg s[1]->isUndefined())424 if (!arg1->isUndefined()) 422 425 return throwError(exec, TypeError); 423 426 return o; 424 427 } 425 428 426 UString p = arg s[0]->isUndefined() ? UString("") : args[0]->toString(exec);427 UString flags = arg s[1]->isUndefined() ? UString("") : args[1]->toString(exec);429 UString p = arg0->isUndefined() ? UString("") : arg0->toString(exec); 430 UString flags = arg1->isUndefined() ? UString("") : arg1->toString(exec); 428 431 429 432 RegExpPrototype* proto = static_cast<RegExpPrototype*>(exec->lexicalInterpreter()->builtinRegExpPrototype());
Note:
See TracChangeset
for help on using the changeset viewer.