Debian Codegraph @

js/src/jit-test/tests/wasm/spec/exception-handling/tokens.wast.js

raw
1 /* Copyright 2021 Mozilla Foundation
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 // ./test/core/tokens.wast
17
18 // ./test/core/tokens.wast:3
19 let $0 = instantiate(`(module
20 (func(nop))
21 )`);
22
23 // ./test/core/tokens.wast:6
24 let $1 = instantiate(`(module
25 (func (nop)nop)
26 )`);
27
28 // ./test/core/tokens.wast:9
29 let $2 = instantiate(`(module
30 (func nop(nop))
31 )`);
32
33 // ./test/core/tokens.wast:12
34 let $3 = instantiate(`(module
35 (func(nop)(nop))
36 )`);
37
38 // ./test/core/tokens.wast:15
39 let $4 = instantiate(`(module
40 (func $$f(nop))
41 )`);
42
43 // ./test/core/tokens.wast:18
44 let $5 = instantiate(`(module
45 (func br 0(nop))
46 )`);
47
48 // ./test/core/tokens.wast:21
49 let $6 = instantiate(`(module
50 (table 1 funcref)
51 (func)
52 (elem (i32.const 0)0)
53 )`);
54
55 // ./test/core/tokens.wast:26
56 let $7 = instantiate(`(module
57 (table 1 funcref)
58 (func $$f)
59 (elem (i32.const 0)$$f)
60 )`);
61
62 // ./test/core/tokens.wast:31
63 let $8 = instantiate(`(module
64 (memory 1)
65 (data (i32.const 0)"a")
66 )`);
67
68 // ./test/core/tokens.wast:35
69 let $9 = instantiate(`(module
70 (import "spectest" "print"(func))
71 )`);
72
73 // ./test/core/tokens.wast:42
74 let $10 = instantiate(`(module
75 (func;;bla
76 )
77 )`);
78
79 // ./test/core/tokens.wast:46
80 let $11 = instantiate(`(module
81 (func (nop);;bla
82 )
83 )`);
84
85 // ./test/core/tokens.wast:50
86 let $12 = instantiate(`(module
87 (func nop;;bla
88 )
89 )`);
90
91 // ./test/core/tokens.wast:54
92 let $13 = instantiate(`(module
93 (func $$f;;bla
94 )
95 )`);
96
97 // ./test/core/tokens.wast:58
98 let $14 = instantiate(`(module
99 (func br 0;;bla
100 )
101 )`);
102
103 // ./test/core/tokens.wast:62
104 let $15 = instantiate(`(module
105 (data "a";;bla
106 )
107 )`);
108
109 // ./test/core/tokens.wast:70
110 let $16 = instantiate(`(module
111 (func (block $$l (i32.const 0) (br_table 0 $$l)))
112 )`);
113
114 // ./test/core/tokens.wast:73
115 assert_malformed(
116 () => instantiate(`(func (block $$l (i32.const 0) (br_table 0$$l))) `),
117 `unknown operator`,
118 );
119
120 // ./test/core/tokens.wast:80
121 let $17 = instantiate(`(module
122 (func (block $$l (i32.const 0) (br_table $$l 0)))
123 )`);
124
125 // ./test/core/tokens.wast:83
126 assert_malformed(
127 () => instantiate(`(func (block $$l (i32.const 0) (br_table $$l0))) `),
128 `unknown label`,
129 );
130
131 // ./test/core/tokens.wast:90
132 let $18 = instantiate(`(module
133 (func (block $$l (i32.const 0) (br_table $$l $$l)))
134 )`);
135
136 // ./test/core/tokens.wast:93
137 assert_malformed(
138 () => instantiate(`(func (block $$l (i32.const 0) (br_table $$l$$l))) `),
139 `unknown label`,
140 );
141
142 // ./test/core/tokens.wast:100
143 let $19 = instantiate(`(module
144 (func (block $$l0 (i32.const 0) (br_table $$l0)))
145 )`);
146
147 // ./test/core/tokens.wast:103
148 let $20 = instantiate(`(module
149 (func (block $$l$$l (i32.const 0) (br_table $$l$$l)))
150 )`);
151
152 // ./test/core/tokens.wast:110
153 let $21 = instantiate(`(module
154 (data "a")
155 )`);
156
157 // ./test/core/tokens.wast:113
158 assert_malformed(() => instantiate(`(data"a") `), `unknown operator`);
159
160 // ./test/core/tokens.wast:120
161 let $22 = instantiate(`(module
162 (data $$l "a")
163 )`);
164
165 // ./test/core/tokens.wast:123
166 assert_malformed(() => instantiate(`(data $$l"a") `), `unknown operator`);
167
168 // ./test/core/tokens.wast:130
169 let $23 = instantiate(`(module
170 (data $$l " a")
171 )`);
172
173 // ./test/core/tokens.wast:133
174 assert_malformed(() => instantiate(`(data $$l" a") `), `unknown operator`);
175
176 // ./test/core/tokens.wast:140
177 let $24 = instantiate(`(module
178 (data $$l "a ")
179 )`);
180
181 // ./test/core/tokens.wast:143
182 assert_malformed(() => instantiate(`(data $$l"a ") `), `unknown operator`);
183
184 // ./test/core/tokens.wast:150
185 let $25 = instantiate(`(module
186 (data $$l "a " "b")
187 )`);
188
189 // ./test/core/tokens.wast:153
190 assert_malformed(() => instantiate(`(data $$l"a ""b") `), `unknown operator`);
191
192 // ./test/core/tokens.wast:160
193 let $26 = instantiate(`(module
194 (data $$l "\u{f61a}\u{f4a9}")
195 )`);
196
197 // ./test/core/tokens.wast:163
198 assert_malformed(() => instantiate(`(data $$l"\u{f61a}\u{f4a9}") `), `unknown operator`);
199
200 // ./test/core/tokens.wast:170
201 let $27 = instantiate(`(module
202 (data $$l " \u{f61a}\u{f4a9}")
203 )`);
204
205 // ./test/core/tokens.wast:173
206 assert_malformed(() => instantiate(`(data $$l" \u{f61a}\u{f4a9}") `), `unknown operator`);
207
208 // ./test/core/tokens.wast:180
209 let $28 = instantiate(`(module
210 (data $$l "\u{f61a}\u{f4a9} ")
211 )`);
212
213 // ./test/core/tokens.wast:183
214 assert_malformed(() => instantiate(`(data $$l"\u{f61a}\u{f4a9} ") `), `unknown operator`);
215
216 // ./test/core/tokens.wast:190
217 let $29 = instantiate(`(module
218 (data "a" "b")
219 )`);
220
221 // ./test/core/tokens.wast:193
222 assert_malformed(() => instantiate(`(data "a""b") `), `unknown operator`);
223
224 // ./test/core/tokens.wast:200
225 let $30 = instantiate(`(module
226 (data "a" " b")
227 )`);
228
229 // ./test/core/tokens.wast:203
230 assert_malformed(() => instantiate(`(data "a"" b") `), `unknown operator`);
231
232 // ./test/core/tokens.wast:210
233 let $31 = instantiate(`(module
234 (data "a " "b")
235 )`);
236
237 // ./test/core/tokens.wast:213
238 assert_malformed(() => instantiate(`(data "a ""b") `), `unknown operator`);
239
240 // ./test/core/tokens.wast:220
241 let $32 = instantiate(`(module
242 (data "\u{f61a}\u{f4a9}" "\u{f61a}\u{f4a9}")
243 )`);
244
245 // ./test/core/tokens.wast:223
246 assert_malformed(
247 () => instantiate(`(data "\u{f61a}\u{f4a9}""\u{f61a}\u{f4a9}") `),
248 `unknown operator`,
249 );
250
251 // ./test/core/tokens.wast:230
252 let $33 = instantiate(`(module
253 (data "\u{f61a}\u{f4a9}" " \u{f61a}\u{f4a9}")
254 )`);
255
256 // ./test/core/tokens.wast:233
257 assert_malformed(
258 () => instantiate(`(data "\u{f61a}\u{f4a9}"" \u{f61a}\u{f4a9}") `),
259 `unknown operator`,
260 );
261
262 // ./test/core/tokens.wast:240
263 let $34 = instantiate(`(module
264 (data "\u{f61a}\u{f4a9} " "\u{f61a}\u{f4a9}")
265 )`);
266
267 // ./test/core/tokens.wast:243
268 assert_malformed(
269 () => instantiate(`(data "\u{f61a}\u{f4a9} ""\u{f61a}\u{f4a9}") `),
270 `unknown operator`,
271 );
272
273 // ./test/core/tokens.wast:251
274 assert_malformed(() => instantiate(`(func "a"x) `), `unknown operator`);
275
276 // ./test/core/tokens.wast:257
277 assert_malformed(() => instantiate(`(func "a"0) `), `unknown operator`);
278
279 // ./test/core/tokens.wast:263
280 assert_malformed(() => instantiate(`(func 0"a") `), `unknown operator`);
281
282 // ./test/core/tokens.wast:269
283 assert_malformed(() => instantiate(`(func "a"$$x) `), `unknown operator`);