Skip to content

Commit ed4be17

Browse files
committed
Merge branch 'main' of github.com:WebAssembly/spec into wasmfx-merge
2 parents d6578f7 + 05949f5 commit ed4be17

File tree

7 files changed

+13
-11
lines changed

7 files changed

+13
-11
lines changed

.github/workflows/w3c-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131

3232
env:
3333
YARN_ENABLE_IMMUTABLE_INSTALLS: false
34-
W3C_STATUS: ${{ github.event_name == 'workflow_dispatch' && inputs.w3c-status || 'WD' }}
34+
W3C_STATUS: ${{ github.event_name == 'workflow_dispatch' && inputs.w3c-status || 'CRD' }}
3535

3636
jobs:
3737
publish-to-w3c-TR:
@@ -64,9 +64,10 @@ jobs:
6464
W3C_ECHIDNA_TOKEN_CORE: ${{ secrets.W3C_ECHIDNA_TOKEN_CORE }}
6565
W3C_ECHIDNA_TOKEN_JSAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_JSAPI }}
6666
W3C_ECHIDNA_TOKEN_WEBAPI: ${{ secrets.W3C_ECHIDNA_TOKEN_WEBAPI }}
67+
# Publish the draft on manual dispatches without dry-run set, or on pushes to the main branch.
6768
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') }}
69+
${{ !((github.event_name == 'workflow_dispatch' && !inputs.dry-run) ||
70+
(github.event_name == 'push' && github.repository == 'WebAssembly/spec' && github.ref == 'refs/heads/main')) }}
7071
- name: Validate ${{ matrix.spec }} spec with Echidna
7172
if: env.W3C_USERNAME
7273
run: cd document && make -e -C ${{ matrix.spec }} WD-echidna

document/core/binary/modules.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,5 +611,5 @@ where for each :math:`t_i^\ast, e_i` in :math:`\X{code}^n`,
611611
The version of the WebAssembly binary format may increase in the future
612612
if backward-incompatible changes have to be made to the format.
613613
However, such changes are expected to occur very infrequently, if ever.
614-
The binary format is intended to be forward-compatible,
615-
such that future extensions can be made without incrementing its version.
614+
The binary format is intended to be extensible,
615+
such that future features can be added without incrementing its version.

document/core/exec/numerics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ It computes :math:`(z_1 \cdot z_2) + z_3` as if with unbounded range and precisi
17171717

17181718
* Else if both :math:`z_1` and :math:`z_2` are zeroes, then return :math:`1`.
17191719

1720-
* Else if :math:`z_1` is smaller than or equal to :math:`z_2`, then return :math:`1`.
1720+
* Else if :math:`z_1` is larger than or equal to :math:`z_2`, then return :math:`1`.
17211721

17221722
* Else return :math:`0`.
17231723

document/core/util/bikeshed_fixup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def Main():
6565
# get carried over into the resulting bikeshed output and then end up causing
6666
# the W3C pubrules checker to refuse to autopublish that bikeshed output.
6767
data = re.sub(r'.+?(<div class="toctree-wrapper compound">.+)',
68-
r'<!doctype HTML>\n<meta charset="utf-8">\n<body>\1',
68+
r'<!doctype HTML>\n<meta charset="utf-8">\n<body><section id="webassembly-specification">\1',
6969
data, flags=re.DOTALL)
7070

7171
# Drop spurious navigation from footer.

document/js-api/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ The algorithm <dfn>ToWebAssemblyValue</dfn>(|v|, |type|) coerces a JavaScript va
13501350
1. Let |n| be an implementation-defined integer such that [=canon=]<sub>32</sub> &leq; |n| &lt; 2<sup>[=signif=](32)</sup>.
13511351
1. Let |f32| be [=nan=](n).
13521352
1. Otherwise,
1353-
1. Let |f32| be |number| rounded to the nearest representable value using IEEE 754-2008 round to nearest, ties to even mode. [[IEEE-754]]
1353+
1. Let |f32| be |number| rounded to the nearest representable value using IEEE 754-2019 round to nearest, ties to even mode. [[IEEE-754]]
13541354
1. Return [=f32.const=] |f32|.
13551355
1. If |type| is [=f64=],
13561356
1. Let |number| be [=?=] [$ToNumber$](|v|).

test/build.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ def build_html_from_js(tests, html_dir, use_sync):
165165
html_file = os.path.join(html_dir, subdir, html_filename)
166166
js_harness = "sync_index.js" if use_sync else "async_index.js"
167167
harness_dir = os.path.join(js_prefix, 'harness')
168+
168169
with open(html_file, 'w+') as f:
169170
content = HTML_HEADER.replace('{PREFIX}', harness_dir) \
170-
.replace('{WPT_PREFIX}', harness_dir) \
171+
.replace('{WPT_PREFIX}', '/resources') \
171172
.replace('{JS_HARNESS}', js_harness)
172173
content += ' <script src="' + js_filename + '"></script>'
173174
content += HTML_BOTTOM

test/core/float_exprs.wast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
(assert_return (invoke "f64.no_fma" (f64.const 0x1.7e2c44058a799p+52) (f64.const 0x1.c73b71765b8b2p+685) (f64.const -0x1.16c641df0b108p+690)) (f64.const 0x1.53ccb53de0bd1p+738))
3636

3737
;; Test that x+0.0 is not folded to x.
38-
;; See IEEE 754-2008 10.4 "Literal meaning and value-changing optimizations".
38+
;; See IEEE 754-2019 10.4 "Literal meaning and value-changing optimizations".
3939

4040
(module
4141
(func (export "f32.no_fold_add_zero") (param $x f32) (result f32)
@@ -94,7 +94,7 @@
9494
(assert_return (invoke "f64.no_fold_mul_zero" (f64.const nan:0x4000000000000)) (f64.const nan:arithmetic))
9595

9696
;; Test that x*1.0 is not folded to x.
97-
;; See IEEE 754-2008 10.4 "Literal meaning and value-changing optimizations".
97+
;; See IEEE 754-2019 10.4 "Literal meaning and value-changing optimizations".
9898

9999
(module
100100
(func (export "f32.no_fold_mul_one") (param $x f32) (result f32)

0 commit comments

Comments
 (0)