From f938c48587109388297258e94316221c19e230af Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Mon, 30 Sep 2024 13:39:11 -0700 Subject: [PATCH 1/2] Add Changelog sections for JS and Web API documents --- document/js-api/index.bs | 21 +++++++++++++++++++++ document/web-api/index.bs | 12 ++++++++++++ 2 files changed, 33 insertions(+) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index d9c9c87229..53878090f3 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -53,6 +53,8 @@ urlPrefix: https://tc39.github.io/ecma262/; spec: ECMASCRIPT text: 𝔽; url: #𝔽 text: ℤ; url: #ℤ text: SameValue; url: sec-samevalue + text: Array; url: sec-array-exotic-objects + text: BigInt; url: sec-ecmascript-language-types-bigint-type urlPrefix: https://webassembly.github.io/spec/core/; spec: WebAssembly; type: dfn text: embedding interface; url: appending/embedding.html text: scope; url: intro/introduction.html#scope @@ -1319,3 +1321,22 @@ In practice, an implementation may run out of resources for valid modules below

This section is non-normative.

This document defines a host environment for WebAssembly. It enables a WebAssembly instance to [=import=] JavaScript objects and functions from an [=read the imports|import object=], but otherwise provides no access to the embedding environment. Thus a WebAssembly instance is bound to the same constraints as JavaScript. + +

Change History

+ +

This section is non-normative.

+ +

Since the original release 1.0 of the WebAssembly specification, a number of proposals for extensions have been integrated. +The following sections provide an overview of what has changed.

+ +

Release 2.0

+ +

Multiple Values

+Multiple values can be returned from WebAssembly functions into JavaScript as an [=Array=] object. + +

BigInt Integration

+Wasm [=i64=] values can be passed to and from JavaScript (via imported or exported globals, table get or set operations, function return values or arguments) as [=BigInt=] objects. + +

Reference types

+References to JavaScript objects can be passed to and from WebAssembly (via imported or exported globals, table set or get operations, and function arguments or return values) as [=externref=] values. +Multiple tables can be exported and imported to and from JavaScript. diff --git a/document/web-api/index.bs b/document/web-api/index.bs index e001b0430d..c9ec517ff2 100644 --- a/document/web-api/index.bs +++ b/document/web-api/index.bs @@ -303,3 +303,15 @@ application/wasm
Author/Change Controller:
W3C
+ + +

Change History

+ +

This section is non-normative.

+ +

Since the original release 1.0 of the WebAssembly specification, a number of proposals for extensions have been integrated. +The following sections provide an overview of what has changed.

+ +

Release 2.0

+

Media-type Registraton Completed

+The registration for the `application/wasm` media type has been successfully completed. From d075efbe485b81c0dd7292c435a41538569de87b Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Wed, 2 Oct 2024 11:26:55 -0700 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Ms2ger Co-authored-by: Andreas Rossberg --- document/js-api/index.bs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index 53878090f3..88fcccc8c3 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -1335,8 +1335,8 @@ The following sections provide an overview of what has changed.

Multiple values can be returned from WebAssembly functions into JavaScript as an [=Array=] object.

BigInt Integration

-Wasm [=i64=] values can be passed to and from JavaScript (via imported or exported globals, table get or set operations, function return values or arguments) as [=BigInt=] objects. +WebAssembly [=i64=] values can be passed to and from JavaScript (via imported or exported globals, table get or set operations, function return values or arguments) as [=BigInt=] objects.

Reference types

-References to JavaScript objects can be passed to and from WebAssembly (via imported or exported globals, table set or get operations, and function arguments or return values) as [=externref=] values. +JavaScript values can be passed to and from WebAssembly (via imported or exported globals, table set or get operations, and function arguments or return values) as [=externref=] values. Multiple tables can be exported and imported to and from JavaScript.