mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 928426 - Don't create template objects for singleton-typed this values. (r=bhackett)
This commit is contained in:
parent
777dc154bc
commit
e1f1057dd5
@ -7454,7 +7454,9 @@ GetTemplateObjectForNative(JSContext *cx, HandleScript script, jsbytecode *pc,
|
||||
}
|
||||
|
||||
if (native == js::array_concat) {
|
||||
if (args.thisv().isObject() && args.thisv().toObject().is<ArrayObject>()) {
|
||||
if (args.thisv().isObject() && args.thisv().toObject().is<ArrayObject>() &&
|
||||
!args.thisv().toObject().hasSingletonType())
|
||||
{
|
||||
res.set(NewDenseEmptyArray(cx, args.thisv().toObject().getProto(), TenuredObject));
|
||||
if (!res)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user