summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1540670.js
blob: 4b271a4feed19f0be77418164e89294c10666814 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Adapted from a fuzz test, the origianl test was:
//
// gcparam('minNurseryBytes', 0);
// gczeal(4);
//
// And would trick the GC into a state where the nursery had been setup but
// thought that it was disabled.

load(libdir + "asserts.js");

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

gczeal(4);