Skip to content

Commit 695cd66

Browse files
committed
Merge with WebAssembly/spec; and fix unresolved conflicts in documents/
2 parents c0bbb8f + 06a88d0 commit 695cd66

File tree

6 files changed

+41
-12
lines changed

6 files changed

+41
-12
lines changed

.github/workflows/w3c-publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
# Candidate Recommendation Snapshot).
1616
workflow_dispatch:
1717
inputs:
18+
dry-run:
19+
required: true
20+
type: boolean
21+
description: If set, Echidna will validate but not publish.
1822
w3c-status:
1923
required: true
2024
type: choice
@@ -60,7 +64,9 @@ jobs:
6064
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
6165
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
6266
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}
63-
ECHIDNA_DRYRUN: ${{ !(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main') }}
67+
ECHIDNA_DRYRUN: |-
68+
${{ (github.event_name == 'workflow_dispatch' && inputs.dry-run) ||
69+
!(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main') }}
6470
- name: Validate ${{ matrix.spec }} spec with Echidna
6571
if: env.W3C_USERNAME
6672
run: cd document && make -e -C ${{ matrix.spec }} WD-echidna

document/core/static/custom.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,9 @@ div.sphinxsidebar a {
8282
div.sphinxsidebar a:hover {
8383
border-bottom: 1px dotted;
8484
}
85+
86+
@media screen and (max-width: 875px) {
87+
div.bodywrapper {
88+
margin: 0;
89+
}
90+
}

document/core/util/bikeshed_fixup.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ def Main():
3030
'Validation Algorithm',
3131
'Custom Sections',
3232
'Soundness',
33-
<<<<<<< HEAD
34-
=======
3533
'Type System Properties',
36-
>>>>>>> efa215847ede578fca9d2ad83cdd45a3ca61879e
3734
'Change History',
3835
'Index of Types',
3936
'Index of Instructions',

document/js-api/index.bs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,24 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMASCRIPT
4646
url: sec-returnifabrupt-shorthands
4747
text: !
4848
text: ?
49-
text: Type; url: sec-ecmascript-data-types-and-values
49+
url: sec-ecmascript-language-types-bigint-type
50+
text: is a BigInt
51+
text: is not a BigInt
52+
url: sec-ecmascript-language-types-boolean-type
53+
text: is a Boolean
54+
text: is not a Boolean
55+
url: sec-ecmascript-language-types-number-type
56+
text: is a Number
57+
text: is not a Number
58+
url: sec-ecmascript-language-types-string-type
59+
text: is a String
60+
text: is not a String
61+
url: sec-ecmascript-language-types-symbol-type
62+
text: is a Symbol
63+
text: is not a Symbol
64+
url: sec-object-type
65+
text: is an Object
66+
text: is not an Object
5067
text: current Realm; url: current-realm
5168
text: ObjectCreate; url: sec-objectcreate
5269
text: CreateBuiltinFunction; url: sec-createbuiltinfunction
@@ -414,7 +431,7 @@ A {{Module}} object represents a single WebAssembly module. Each {{Module}} obje
414431
1. Let |imports| be « ».
415432
1. [=list/iterate|For each=] (|moduleName|, |componentName|, |externtype|) of [=module_imports=](|module|),
416433
1. Let |o| be [=?=] [$Get$](|importObject|, |moduleName|).
417-
1. If [=Type=](|o|) is not Object, throw a {{TypeError}} exception.
434+
1. If |o| [=is not an Object=], throw a {{TypeError}} exception.
418435
1. Let |v| be [=?=] [$Get$](|o|, |componentName|).
419436
1. If |externtype| is of the form [=external-type/func=] |functype|,
420437
1. If [$IsCallable$](|v|) is false, throw a {{LinkError}} exception.
6.72 KB
Binary file not shown.

interpreter/README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ Commands are executed in sequence. Commands taking an optional module name refer
487487

488488
After a module is _registered_ under a string name it is available for importing in other modules.
489489

490+
The failure string in assertions exists for documentation purposes.
491+
The reference interpreter itself checks that the string is a prefix of the actual error message it generates.
492+
490493
The script format supports additional syntax for defining modules.
491494
A module of the form `(module binary <string>*)` is given in binary form and will be decoded from the (concatenation of the) strings.
492495
A module of the form `(module quote <string>*)` is given in textual form and will be parsed from the (concatenation of the) strings. In both cases, decoding/parsing happens when the command is executed, not when the script is parsed, so that meta commands like `assert_malformed` can be used to check expected errors.
@@ -511,14 +514,14 @@ In that mode, execution may fail with a "crash" error message.
511514
When running scripts, the interpreter predefines a simple host module named `"spectest"` that has the following module type:
512515
```
513516
(module
514-
(global (export "global_i32") i32)
515-
(global (export "global_i64") i64)
516-
(global (export "global_f32") f32)
517-
(global (export "global_f64") f64)
517+
(global (export "global_i32") i32) ;; value 666
518+
(global (export "global_i64") i64) ;; value 666
519+
(global (export "global_f32") f32) ;; value 666.6
520+
(global (export "global_f64") f64) ;; value 666.6
518521
519-
(table (export "table") 10 20 funcref)
522+
(table (export "table") 10 20 funcref) ;; null-initialized
520523
521-
(memory (export "memory") 1 2)
524+
(memory (export "memory") 1 2) ;; zero-initialized
522525
523526
(func (export "print"))
524527
(func (export "print_i32") (param i32))

0 commit comments

Comments
 (0)