Skip to content
This repository was archived by the owner on Jan 15, 2025. It is now read-only.

Commit 04e1cf6

Browse files
committed
Merge remote-tracking branch 'upstream/wasm-3.0' into main
2 parents 1bf8e0f + 64fb8fd commit 04e1cf6

27 files changed

Lines changed: 493 additions & 135 deletions

‎.github/workflows/w3c-publish.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
# Allows you to run this workflow manually from the Actions tab
99
workflow_dispatch:
10+
inputs:
11+
w3c-status:
12+
required: true
13+
type: string
1014

1115
jobs:
1216
publish-to-w3c-TR:
@@ -30,7 +34,7 @@ jobs:
3034
- name: Publish all specs to their https://www.w3.org/TR/ URLs
3135
run: cd document && make -e WD-echidna-CI
3236
env:
33-
STATUS: --md-status=WD
37+
W3C_STATUS: ${{ github.event_name == 'push' && 'WD' || inputs.w3c-status }}
3438
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
3539
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
3640
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}

‎document/LICENSE‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This document is licensed under the W3C Software and Document License.
2+
Its text can be found at https://www.w3.org/copyright/software-license/

‎document/Makefile‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ diff: $(DIRS:%=diff-%)
2828
# macOS: do “brew install tar” & run “make” as: TAR=gtar make -e WD-tar
2929
.PHONY: WD-tar
3030
WD-tar:
31-
for dir in $(DIRS); \
32-
do STATUS=--md-status=WD TAR=$(TAR) $(MAKE) -e -C $$dir $@;\
31+
for dir in $(DIRS); do \
32+
TAR=$(TAR) $(MAKE) -e -C $$dir $@ || exit 1; \
3333
done
3434

3535
# macOS: do “brew install tar” & run “make” as: TAR=gtar make -e WD-echidna
3636
.PHONY: WD-echidna
3737
WD-echidna:
38-
for dir in $(DIRS); \
39-
do $(MAKE) -e -C $$dir $@;\
38+
for dir in $(DIRS); do \
39+
$(MAKE) -e -C $$dir $@ || exit 1; \
4040
done
4141

4242
.PHONY: WD-echidna-CI
4343
WD-echidna-CI:
44-
for dir in $(DIRS); \
45-
do $(MAKE) -e -C $$dir $@;\
44+
for dir in $(DIRS); do \
45+
$(MAKE) -e -C $$dir $@ || exit 1; \
4646
done
4747

4848
# Directory-specific targets.

‎document/core/Makefile‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
#
33

44
# You can set these variables from the command line.
5+
W3C_STATUS = ED
56
SPHINXOPTS =
67
SPHINXBUILD = sphinx-build
78
PAPER = a4
89
BUILDDIR = _build
910
STATICDIR = _static
1011
DOWNLOADDIR = _download
1112
NAME = WebAssembly
12-
DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2017/WG-12-06.md
13+
DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2024/WG-06-12.md
1314
TAR = tar
1415

1516
# Internal variables.
@@ -154,7 +155,7 @@ bikeshed: $(GENERATED)
154155
@echo
155156
@echo =========================================================================
156157
mkdir -p $(BUILDDIR)/bikeshed_mathjax/
157-
bikeshed spec $(STATUS) index.bs $(BUILDDIR)/bikeshed_mathjax/index.html
158+
bikeshed spec --md-status=$(W3C_STATUS) index.bs $(BUILDDIR)/bikeshed_mathjax/index.html
158159
mkdir -p $(BUILDDIR)/html/bikeshed/
159160
(cd util/katex/ && yarn && yarn build && npm install --only=prod)
160161
python3 util/mathjax2katex.py $(BUILDDIR)/bikeshed_mathjax/index.html \
@@ -196,7 +197,7 @@ WD-echidna: WD-tar
196197
-F "tar=@$(BUILDDIR)/WD.tar" \
197198
-F "decision=$(DECISION_URL)" | tee $(BUILDDIR)/WD-echidna-id.txt
198199
@echo
199-
@echo "Published working draft. Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
200+
@echo "Published $(W3C_STATUS). Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
200201

201202
.PHONY: WD-echidna-CI
202203
WD-echidna-CI: WD-tar
@@ -210,7 +211,7 @@ WD-echidna-CI: WD-tar
210211
-F "token=$(W3C_ECHIDNA_TOKEN_CORE)" \
211212
-F "decision=$(DECISION_URL)" | tee $(BUILDDIR)/WD-echidna-id.txt
212213
@echo
213-
@echo "Published working draft. Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
214+
@echo "Published $(W3C_STATUS). Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
214215

215216
.PHONY: diff
216217
diff: bikeshed

‎document/core/appendix/custom.rst‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Each subsection consists of a
4646
\Bmodulenamesubsec^? \\ &&&
4747
\Bfuncnamesubsec^? \\ &&&
4848
\Blocalnamesubsec^? \\ &&&
49+
\Btypenamesubsec^? \\ &&&
50+
\Bfieldnamesubsec^? \\ &&&
4951
\Btagnamesubsec^? \\
5052
\production{name subsection} & \Bnamesubsection_N(\B{B}) &::=&
5153
N{:}\Bbyte~~\X{size}{:}\Bu32~~\B{B}
@@ -160,7 +162,7 @@ It consists of a :ref:`name map <binary-namemap>` assigning type names to :ref:`
160162
.. math::
161163
\begin{array}{llclll}
162164
\production{type name subsection} & \Btypenamesubsec &::=&
163-
\Bnamesubsection_1(\Bnamemap) \\
165+
\Bnamesubsection_4(\Bnamemap) \\
164166
\end{array}
165167
166168
@@ -176,7 +178,7 @@ It consists of an :ref:`indirect name map <binary-indirectnamemap>` assigning fi
176178
.. math::
177179
\begin{array}{llclll}
178180
\production{field name subsection} & \Bfieldnamesubsec &::=&
179-
\Bnamesubsection_2(\Bindirectnamemap) \\
181+
\Bnamesubsection_10(\Bindirectnamemap) \\
180182
\end{array}
181183
182184

‎document/core/binary/modules.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ It decodes into a vector of :ref:`element segments <syntax-elem>` that represent
362362
\{ \ETYPE~\X{et}, \EINIT~((\REFFUNC~y)~\END)^\ast, \EMODE~\EDECLARATIVE \} \\ &&|&
363363
4{:}\Bu32~~e{:}\Bexpr~~\X{el}^\ast{:}\Bvec(\Bexpr)
364364
&\Rightarrow& \\&&&\quad
365-
\{ \ETYPE~(\REF~\FUNC), \EINIT~\X{el}^\ast, \EMODE~\EACTIVE~\{ \ETABLE~0, \EOFFSET~e \} \} \\ &&|&
365+
\{ \ETYPE~(\REF~\NULL~\FUNC), \EINIT~\X{el}^\ast, \EMODE~\EACTIVE~\{ \ETABLE~0, \EOFFSET~e \} \} \\ &&|&
366366
5{:}\Bu32~~\X{et}:\Breftype~~\X{el}^\ast{:}\Bvec(\Bexpr)
367367
&\Rightarrow& \\&&&\quad
368368
\{ \ETYPE~et, \EINIT~\X{el}^\ast, \EMODE~\EPASSIVE \} \\ &&|&

‎document/core/index.bs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Issue Tracking: GitHub https://github.com/WebAssembly/spec/issues
77
Level: 2
88
TR: https://www.w3.org/TR/wasm-core-2/
99
ED: https://webassembly.github.io/spec/core/bikeshed/
10+
Implementation Report: https://webassembly.org/features/
1011
Editor: Andreas Rossberg, w3cid 82328
1112
Repository: WebAssembly/spec
1213
Markup Shorthands: css no, markdown no, algorithm no, idl no

‎document/core/static/custom.css‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ body {
1515
font-size: 15px;
1616
}
1717

18-
div.document { width: 1000px; }
18+
div.document {
19+
width: unset;
20+
max-width: 1000px;
21+
}
1922
div.bodywrapper { margin: 0 0 0 200px; }
2023
div.body { padding: 0 10px 0 10px; }
21-
div.footer { width: 1000px; }
24+
div.footer {
25+
width: unset;
26+
max-width: 1000px;
27+
}
2228

2329
div.body h1 { font-size: 200%; }
2430
div.body h2 { font-size: 150%; }

‎document/js-api/Makefile‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
W3C_STATUS = ED
12
BUILDDIR = _build
23
STATICDIR = _static
34
DOWNLOADDIR = _download
45
NAME = WebAssembly
5-
DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2017/WG-12-06.md
6+
DECISION_URL = https://github.com/WebAssembly/meetings/blob/main/main/2024/WG-06-12.md
67
TAR = tar
78

89
.PHONY: all
910
all:
1011
mkdir -p $(BUILDDIR)/html
11-
bikeshed spec index.bs $(BUILDDIR)/html/index.html
12+
bikeshed spec --md-status=$(W3C_STATUS) index.bs $(BUILDDIR)/html/index.html
1213
@echo "Build finished. The HTML pages are in `pwd`/$(BUILDDIR)/html."
1314

1415
.PHONY: publish
@@ -33,7 +34,7 @@ diff: all
3334
# macOS tar has no “--transform” option (only GNU tar does), so on macOS,
3435
# do “brew install tar” & run “make” like this: “TAR=gtar make -e WD-tar”
3536
WD-tar: all
36-
bikeshed spec --md-status=WD index.bs $(BUILDDIR)/html/index.html
37+
bikeshed spec --md-status=$(W3C_STATUS) index.bs $(BUILDDIR)/html/index.html
3738
$(TAR) -C $(BUILDDIR)/html --transform="s/index.html/Overview.html/" -cf $(BUILDDIR)/WD.tar index.html
3839
@echo "Built $(BUILDDIR)/WD.tar."
3940

@@ -62,4 +63,4 @@ WD-echidna-CI: WD-tar
6263
-F "token=$(W3C_ECHIDNA_TOKEN_JSAPI)" \
6364
-F "decision=$(DECISION_URL)" | tee $(BUILDDIR)/WD-echidna-id.txt
6465
@echo
65-
@echo "Published working draft. Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"
66+
@echo "Published w$(W3C_STATUS). Check its status at https://labs.w3.org/echidna/api/status?id=`cat $(BUILDDIR)/WD-echidna-id.txt`"

‎document/js-api/index.bs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Issue Tracking: GitHub https://github.com/WebAssembly/spec/issues
77
Level: 2
88
TR: https://www.w3.org/TR/wasm-js-api-2/
99
ED: https://webassembly.github.io/spec/js-api/
10+
Implementation Report: https://webassembly.org/features/
1011
Editor: Ms2ger, w3cid 46309, Igalia
1112
Repository: WebAssembly/spec
1213
Markup Shorthands: css no, markdown yes

0 commit comments

Comments
 (0)