mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
[JAEGER] Fixed bug in lambda replace w/ eager this.
This commit is contained in:
parent
cf5a8cf505
commit
c1a644c526
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user