summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1388701.js
blob: 8f0a6292c8536a48751d288f57070f7209d777ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
load(libdir + "asserts.js");

// This is out of range
assertErrorMessage(
    () => gcparam('maxNurseryBytes', 0),
    Error,
    "Parameter value out of range");

assertErrorMessage(
    () => gcparam('maxNurseryBytes', 5),
    Error,
    "Parameter value out of range");

// this is okay
gcparam('maxNurseryBytes', 1024*1024);
assertEq(gcparam('maxNurseryBytes'), 1024*1024);
gc();