Skip to content

Commit 056993f

Browse files
committed
Bug 1966355 - Part 21: Import Immutable ArrayBuffer test262 tests. r=spidermonkey-reviewers,dminor
Test262 PR: <tc39/test262#4445>. Roughly half of the spec proposal is still missing coverage, see the review notes at <tc39/test262#4445 (review)>. Differential Revision: https://phabricator.services.mozilla.com/D249415 UltraBlame original commit: a2125b80c39422a420f5eae283f045d8d98d13ee
1 parent a775f00 commit 056993f

File tree

117 files changed

+30549
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+30549
-0
lines changed

js/src/tests/test262/prs/4445/browser.js

Whitespace-only changes.

js/src/tests/test262/prs/4445/built-ins/ArrayBuffer/browser.js

Whitespace-only changes.

js/src/tests/test262/prs/4445/built-ins/ArrayBuffer/prototype/browser.js

Whitespace-only changes.

js/src/tests/test262/prs/4445/built-ins/ArrayBuffer/prototype/immutable/browser.js

Whitespace-only changes.
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
/
2+
/
3+
|
4+
reftest
5+
|
6+
shell
7+
-
8+
option
9+
(
10+
-
11+
-
12+
enable
13+
-
14+
arraybuffer
15+
-
16+
immutable
17+
)
18+
skip
19+
-
20+
if
21+
(
22+
!
23+
ArrayBuffer
24+
.
25+
prototype
26+
.
27+
sliceToImmutable
28+
|
29+
|
30+
!
31+
xulRuntime
32+
.
33+
shell
34+
)
35+
-
36+
-
37+
immutable
38+
-
39+
arraybuffer
40+
is
41+
not
42+
enabled
43+
unconditionally
44+
requires
45+
shell
46+
-
47+
options
48+
/
49+
/
50+
Copyright
51+
(
52+
C
53+
)
54+
2025
55+
Moddable
56+
Tech
57+
Inc
58+
.
59+
All
60+
rights
61+
reserved
62+
.
63+
/
64+
/
65+
This
66+
code
67+
is
68+
governed
69+
by
70+
the
71+
BSD
72+
license
73+
found
74+
in
75+
the
76+
LICENSE
77+
file
78+
.
79+
/
80+
*
81+
-
82+
-
83+
-
84+
description
85+
:
86+
verify
87+
immutable
88+
property
89+
of
90+
ArrayBuffer
91+
esid
92+
:
93+
sec
94+
-
95+
get
96+
-
97+
arraybuffer
98+
.
99+
prototype
100+
.
101+
immutable
102+
features
103+
:
104+
[
105+
ArrayBuffer
106+
immutable
107+
-
108+
arraybuffer
109+
]
110+
-
111+
-
112+
-
113+
*
114+
/
115+
var
116+
ab
117+
=
118+
new
119+
ArrayBuffer
120+
(
121+
1
122+
)
123+
;
124+
assert
125+
.
126+
sameValue
127+
(
128+
ab
129+
.
130+
immutable
131+
false
132+
)
133+
;
134+
ab
135+
=
136+
ab
137+
.
138+
transferToImmutable
139+
(
140+
)
141+
;
142+
assert
143+
.
144+
sameValue
145+
(
146+
ab
147+
.
148+
immutable
149+
true
150+
)
151+
;
152+
ab
153+
=
154+
new
155+
ArrayBuffer
156+
(
157+
1
158+
{
159+
maxByteLength
160+
:
161+
2
162+
}
163+
)
164+
;
165+
assert
166+
.
167+
sameValue
168+
(
169+
ab
170+
.
171+
immutable
172+
false
173+
)
174+
;
175+
ab
176+
=
177+
ab
178+
.
179+
transferToImmutable
180+
(
181+
)
182+
;
183+
assert
184+
.
185+
sameValue
186+
(
187+
ab
188+
.
189+
immutable
190+
true
191+
)
192+
;
193+
reportCompare
194+
(
195+
0
196+
0
197+
)
198+
;
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
/
2+
/
3+
|
4+
reftest
5+
|
6+
shell
7+
-
8+
option
9+
(
10+
-
11+
-
12+
enable
13+
-
14+
arraybuffer
15+
-
16+
immutable
17+
)
18+
skip
19+
-
20+
if
21+
(
22+
!
23+
ArrayBuffer
24+
.
25+
prototype
26+
.
27+
sliceToImmutable
28+
|
29+
|
30+
!
31+
xulRuntime
32+
.
33+
shell
34+
)
35+
-
36+
-
37+
immutable
38+
-
39+
arraybuffer
40+
is
41+
not
42+
enabled
43+
unconditionally
44+
requires
45+
shell
46+
-
47+
options
48+
/
49+
/
50+
Copyright
51+
(
52+
C
53+
)
54+
2025
55+
Moddable
56+
Tech
57+
Inc
58+
.
59+
All
60+
rights
61+
reserved
62+
.
63+
/
64+
/
65+
This
66+
code
67+
is
68+
governed
69+
by
70+
the
71+
BSD
72+
license
73+
found
74+
in
75+
the
76+
LICENSE
77+
file
78+
.
79+
/
80+
*
81+
-
82+
-
83+
-
84+
description
85+
:
86+
verify
87+
immutable
88+
property
89+
requires
90+
ArrayBuffer
91+
receiver
92+
esid
93+
:
94+
sec
95+
-
96+
get
97+
-
98+
arraybuffer
99+
.
100+
prototype
101+
.
102+
immutable
103+
features
104+
:
105+
[
106+
ArrayBuffer
107+
immutable
108+
-
109+
arraybuffer
110+
]
111+
-
112+
-
113+
-
114+
*
115+
/
116+
assert
117+
.
118+
throws
119+
(
120+
TypeError
121+
function
122+
(
123+
)
124+
{
125+
ArrayBuffer
126+
.
127+
prototype
128+
.
129+
immutable
130+
;
131+
}
132+
)
133+
;
134+
reportCompare
135+
(
136+
0
137+
0
138+
)
139+
;

0 commit comments

Comments
 (0)