summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1894025.js
blob: 06ebd8ceb6fda01ff5ed81eab36cd1f0a1a52260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
gczeal(0);

var ex;
function makeExtensibleStrFrom() {
    strstrstr;
}
a = makeExtensibleStrFrom;
b = newDependentString(a, 0, 50, { tenured: false })
var exc;
try {
    c = newDependentString(b, 0, { tenured: true })
} catch (e) {
    exc = e;
}
assertEq(Boolean(exc), true, "b and c required to be in different heaps but are the same");