[JAEGER] Fixed bug in lambda replace w/ eager this.

This commit is contained in:
David Anderson 2010-07-19 21:14:44 -07:00
parent cf5a8cf505
commit c1a644c526

View File

@ -2018,7 +2018,7 @@ FindReplaceLength(JSContext *cx, ReplaceData &rdata, size_t *sizep)
/* Push lambda and its 'this' parameter. */
Value *sp = rdata.args.getvp();
sp++->setObject(*lambda);
sp++->setObjectOrNull(lambda->getParent());
sp++->setNull();
/* Push $&, $1, $2, ... */
if (!PushRegExpSubstr(cx, cx->regExpStatics.lastMatch, sp))