mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1075546 r=terrence
This commit is contained in:
parent
b030bd8399
commit
2a10e013cc
30
js/src/jit-test/tests/gc/bug-1075546.js
Normal file
30
js/src/jit-test/tests/gc/bug-1075546.js
Normal 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()
|
||||
}
|
@ -1505,9 +1505,10 @@ js::NewObjectWithGivenProto(ExclusiveContext *cxArg, const js::Class *clasp,
|
||||
parentArg = parent;
|
||||
protoArg = proto;
|
||||
}
|
||||
} else {
|
||||
gcNumber = rt->gc.gcNumber();
|
||||
}
|
||||
}
|
||||
gcNumber = rt->gc.gcNumber();
|
||||
}
|
||||
|
||||
Rooted<TaggedProto> proto(cxArg, protoArg);
|
||||
|
Loading…
Reference in New Issue
Block a user