summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1252154.js
blob: 1923956961f2b30be499b397fd8a34aba5faa4fd (plain)
1
2
3
4
5
6
7
8
9
10
11
// Bug 1252154: Inline typed array objects need delayed metadata collection.
// Shouldn't crash.

if (!this.hasOwnProperty("TypedObject"))
  quit();

gczeal(7,1);
enableShellAllocationMetadataBuilder();
var T = TypedObject;
var AT = new T.ArrayType(T.Any,10);
var v = new AT();