• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{{header}}
2{{object 1 0}} <<
3  /Type /Catalog
4  /Pages 2 0 R
5  /OpenAction 10 0 R
6>>
7endobj
8{{object 2 0}} <<
9  /Type /Pages
10  /Count 1
11  /Kids [
12    3 0 R
13  ]
14>>
15endobj
16% Page number 0.
17{{object 3 0}} <<
18  /Type /Page
19  /Parent 2 0 R
20  /Resources <<
21    /Font <</F1 15 0 R>>
22  >>
23  /Contents [21 0 R]
24  /MediaBox [0 0 612 792]
25>>
26% OpenAction action
27{{object 10 0}} <<
28  /Type /Action
29  /S /JavaScript
30  /JS 11 0 R
31>>
32endobj
33% JS program to exexute
34{{object 11 0}} <<
35>>
36stream
37app.alert("This test attempts to make array buffers until exhausted");
38
39function test(size) {
40  var i, ab, ia;
41  app.alert("Trying size " + size);
42  ab = new ArrayBuffer(size);
43  ia = new Int32Array(ab);
44  for (i = 0; i < size / 4; ++i) {
45    ia[i] = i;
46  }
47  for (i = 0; i < size / 4; ++i) {
48    if (ia[i] != i) {
49      throw('aaaaaaah');
50    }
51  }
52}
53
54try {
55  test(1000);
56  test(2000000);
57  test(4000000000);
58} catch (e) {
59  app.alert("Caught error " + e);
60}
61endstream
62endobj
63{{xref}}
64trailer <<
65  /Root 1 0 R
66>>
67{{startxref}}
68%%EOF
69