summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1411294.js
blob: 327c808bcf3fec2053fe86cdc1fbe80ccf0e6ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !('oomTest' in this)
oomTest(function() {
  eval(`var clonebuffer = serialize("abc");
  clonebuffer.clonebuffer = "\
\\x00\\x00\\x00\\x00\\b\\x00\\xFF\\xFF\\f\
\\x00\\x00\\x00\\x03\\x00\\xFF\\xFF\\x00\\x00\\x00\\x00\\x00\\x00\\x00\
\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xF0?\\x00\\x00\\x00\\\x00\\x00\
\\x00\\xFF\\xFF"
  var obj = deserialize(clonebuffer)
  assertEq(new ({ get }).keys(obj).toString(), "12,ab");
`);
});