Bug 1075546 r=terrence

This commit is contained in:
Jon Coppeard 2014-10-08 08:32:28 +01:00
parent 425175f713
commit 7fcdfd8fd6
2 changed files with 32 additions and 1 deletions

View File

@ -0,0 +1,30 @@
for (var i = 0; i < 200; ++i) {
Object.getOwnPropertyNames(undefined + "");
}
function p(s) {
for (var i = 0; i < s.length; i++) {
s.charCodeAt(i);
}
}
function m(f) {
var a = [];
for (var j = 0; j < 700; ++j) {
try {
f()
} catch (e) {
a.push(e.toString());
}
}
p(uneval(a));
}
f = Function("\
function f() {\
functionf\n{}\
}\
m(f);\
");
f();
f();
for (var x = 0; x < 99; x++) {
newGlobal()
}

View File

@ -1505,10 +1505,11 @@ js::NewObjectWithGivenProto(ExclusiveContext *cxArg, const js::Class *clasp,
parentArg = parent;
protoArg = proto;
}
}
}
} else {
gcNumber = rt->gc.gcNumber();
}
}
}
Rooted<TaggedProto> proto(cxArg, protoArg);
RootedObject parent(cxArg, parentArg);