You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
<p>WebAssembly is a standard, a safe, portable, low-level code format. The
258
+
security considerations associated with executing WebAssembly code are
259
+
described in https://www.w3.org/TR/wasm-core/#security-considerations.</p>
260
+
<p>The WebAssembly format includes no integrity or privacy protection. If
261
+
such protection is needed it must be provided externally, e.g., through
262
+
the use of HTTPS.</p>
263
+
</dd>
258
264
<dt>Interoperability Considerations:</dt>
259
-
<dd>See see WebAssembly Core Conformance<br/>
265
+
<dd>See WebAssembly Core Conformance<br/>
260
266
https://www.w3.org/TR/wasm-core/#conformance</dd>
261
267
<dt>Published specification:</dt>
262
-
https://www.w3.org/TR/wasm-core-1/
268
+
<dd>https://www.w3.org/TR/wasm-core-1/
263
269
https://www.w3.org/TR/wasm-js-api-1/
264
-
https://www.w3.org/TR/wasm-web-api-1/
270
+
https://www.w3.org/TR/wasm-web-api-1/</dd>
265
271
<dt>Application Usage:</dt>
266
-
<dd>The application/wasm media type is already in use as the type used to describe WebAssembly files when sent over HTTP to be executed by browsers, which is a common scenario. Additionally, several WebAssembly runtimes that take advantage of the safety and portability while targeting efficient execution and compact representation.</dd>
272
+
<dd>The application/wasm media type is intended for use as the type used to
273
+
describe WebAssembly files when sent over HTTP to be executed by browsers,
274
+
which is a common scenario. Additionally, the type is used by several
275
+
WebAssembly runtimes that take advantage of the safety and portability
276
+
while targeting efficient execution and compact representation.</dd>
Copy file name to clipboardExpand all lines: interpreter/README.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -363,6 +363,36 @@ The `input` and `output` meta commands determine the requested file format from
363
363
The interpreter supports a "dry" mode (flag `-d`), in which modules are only validated. In this mode, all actions and assertions are ignored.
364
364
It also supports an "unchecked" mode (flag `-u`), in which module definitions are not validated before use.
365
365
366
+
367
+
### Spectest host module
368
+
369
+
When running scripts, the interpreter predefines a simple host module named `"spectest"` that has the following module type:
370
+
```
371
+
(module
372
+
(global (export "global_i32") i32)
373
+
(global (export "global_i64") i64)
374
+
(global (export "global_f32") f32)
375
+
(global (export "global_f64") f64)
376
+
377
+
(table (export "table") 10 20 funcref)
378
+
379
+
(memory (export "memory") 1 2)
380
+
381
+
(func (export "print"))
382
+
(func (export "print_i32") (param i32))
383
+
(func (export "print_i64") (param i64))
384
+
(func (export "print_f32") (param f32))
385
+
(func (export "print_f64") (param f64))
386
+
(func (export "print_i32_f32") (param i32 f32))
387
+
(func (export "print_f64_f64") (param f64 f64))
388
+
)
389
+
```
390
+
The `print` functions are assumes to print their respective argument values to stdout (followed by a newline) and can be used to produce observable output.
391
+
392
+
Note: This module predates the `register` command and should no longer be needed for new tests.
393
+
We might remove it in the future, so consider it deprecated.
394
+
395
+
366
396
### Binary Scripts
367
397
368
398
The grammar of binary scripts is a subset of the grammar for general scripts:
0 commit comments