Skip to content

Commit 33072ec

Browse files
committed
bump StarlingMonkey to include wasi 0.2.3
Signed-off-by: karthik2804 <[email protected]>
1 parent 8e67356 commit 33072ec

31 files changed

+112
-112
lines changed

StarlingMonkey

Submodule StarlingMonkey updated 85 files

crates/spidermonkey-embedding-splicer/src/splice.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use wasmparser::Operator;
1111

1212
use crate::*;
1313

14-
const WASI_VERSIONS: [&str; 3] = ["0.2.0", "0.2.1", "0.2.2"];
14+
const WASI_VERSIONS: [&str; 4] = ["0.2.0", "0.2.1", "0.2.2", "0.2.3"];
1515

1616
//
1717
// Parses the Spidermonkey binary into section data for reserialization

crates/spidermonkey-embedding-splicer/src/stub_wasi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use wit_parser::Resolve;
1515

1616
use crate::{parse_wit, Features};
1717

18-
const WASI_VERSIONS: [&str; 3] = ["0.2.0", "0.2.1", "0.2.2"];
18+
const WASI_VERSIONS: [&str; 4] = ["0.2.0", "0.2.1", "0.2.2", "0.2.3"];
1919

2020
fn stub_wasi_imports<StubFn>(
2121
module: &mut Module,

test/cases/http-request/source.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { handle } from 'wasi:http/[email protected].2';
2-
import { Fields, OutgoingRequest } from 'wasi:http/[email protected].2';
1+
import { handle } from 'wasi:http/[email protected].3';
2+
import { Fields, OutgoingRequest } from 'wasi:http/[email protected].3';
33

44
const encoder = new TextEncoder();
55
const decoder = new TextDecoder();

test/test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { strictEqual } from 'node:assert';
88
const DEBUG_TRACING = false;
99
const LOG_DEBUGGING = false;
1010

11-
function maybeLogging (disableFeatures) {
11+
function maybeLogging(disableFeatures) {
1212
if (!LOG_DEBUGGING) return disableFeatures;
1313
if (disableFeatures && disableFeatures.includes('stdio')) {
1414
disableFeatures.splice(disableFeatures.indexOf('stdio'), 1);
@@ -242,8 +242,8 @@ suite('WASI', () => {
242242

243243
const { component } = await componentize(
244244
`
245-
import { now } from 'wasi:clocks/[email protected].2';
246-
import { getRandomBytes } from 'wasi:random/[email protected].2';
245+
import { now } from 'wasi:clocks/[email protected].3';
246+
import { getRandomBytes } from 'wasi:random/[email protected].3';
247247
248248
let result;
249249
export const run = {

test/wit/deps/cli/command.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:cli@0.2.2;
1+
package wasi:cli@0.2.3;
22

33
@since(version = 0.2.0)
44
world command {

test/wit/deps/cli/imports.wit

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
package wasi:cli@0.2.2;
1+
package wasi:cli@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {
55
@since(version = 0.2.0)
6-
include wasi:clocks/imports@0.2.2;
6+
include wasi:clocks/imports@0.2.3;
77
@since(version = 0.2.0)
8-
include wasi:filesystem/imports@0.2.2;
8+
include wasi:filesystem/imports@0.2.3;
99
@since(version = 0.2.0)
10-
include wasi:sockets/imports@0.2.2;
10+
include wasi:sockets/imports@0.2.3;
1111
@since(version = 0.2.0)
12-
include wasi:random/imports@0.2.2;
12+
include wasi:random/imports@0.2.3;
1313
@since(version = 0.2.0)
14-
include wasi:io/imports@0.2.2;
14+
include wasi:io/imports@0.2.3;
1515

1616
@since(version = 0.2.0)
1717
import environment;

test/wit/deps/cli/stdio.wit

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface stdin {
33
@since(version = 0.2.0)
4-
use wasi:io/streams@0.2.2.{input-stream};
4+
use wasi:io/streams@0.2.3.{input-stream};
55

66
@since(version = 0.2.0)
77
get-stdin: func() -> input-stream;
@@ -10,7 +10,7 @@ interface stdin {
1010
@since(version = 0.2.0)
1111
interface stdout {
1212
@since(version = 0.2.0)
13-
use wasi:io/streams@0.2.2.{output-stream};
13+
use wasi:io/streams@0.2.3.{output-stream};
1414

1515
@since(version = 0.2.0)
1616
get-stdout: func() -> output-stream;
@@ -19,7 +19,7 @@ interface stdout {
1919
@since(version = 0.2.0)
2020
interface stderr {
2121
@since(version = 0.2.0)
22-
use wasi:io/streams@0.2.2.{output-stream};
22+
use wasi:io/streams@0.2.3.{output-stream};
2323

2424
@since(version = 0.2.0)
2525
get-stderr: func() -> output-stream;

test/wit/deps/clocks/monotonic-clock.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22
/// WASI Monotonic Clock is a clock API intended to let users measure elapsed
33
/// time.
44
///
@@ -10,7 +10,7 @@ package wasi:[email protected];
1010
@since(version = 0.2.0)
1111
interface monotonic-clock {
1212
@since(version = 0.2.0)
13-
use wasi:io/poll@0.2.2.{pollable};
13+
use wasi:io/poll@0.2.3.{pollable};
1414

1515
/// An instant in time, in nanoseconds. An instant is relative to an
1616
/// unspecified initial value, and can only be compared to instances from

test/wit/deps/clocks/timezone.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22

33
@unstable(feature = clocks-timezone)
44
interface timezone {

test/wit/deps/clocks/wall-clock.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22
/// WASI Wall Clock is a clock API intended to let users query the current
33
/// time. The name "wall" makes an analogy to a "clock on the wall", which
44
/// is not necessarily monotonic as it may be reset.

test/wit/deps/clocks/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:clocks@0.2.2;
1+
package wasi:clocks@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

test/wit/deps/filesystem/preopens.wit

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
package wasi:filesystem@0.2.2;
1+
package wasi:filesystem@0.2.3;
22

33
@since(version = 0.2.0)
44
interface preopens {
55
@since(version = 0.2.0)
66
use types.{descriptor};
77

8-
/// Return the set of preopened directories, and their path.
8+
/// Return the set of preopened directories, and their paths.
99
@since(version = 0.2.0)
1010
get-directories: func() -> list<tuple<descriptor, string>>;
1111
}

test/wit/deps/filesystem/types.wit

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.2;
1+
package wasi:filesystem@0.2.3;
22
/// WASI filesystem is a filesystem API primarily intended to let users run WASI
33
/// programs that access their files on their existing filesystems, without
44
/// significant overhead.
@@ -26,9 +26,9 @@ package wasi:[email protected];
2626
@since(version = 0.2.0)
2727
interface types {
2828
@since(version = 0.2.0)
29-
use wasi:io/streams@0.2.2.{input-stream, output-stream, error};
29+
use wasi:io/streams@0.2.3.{input-stream, output-stream, error};
3030
@since(version = 0.2.0)
31-
use wasi:clocks/wall-clock@0.2.2.{datetime};
31+
use wasi:clocks/wall-clock@0.2.3.{datetime};
3232

3333
/// File size or length of a region within a file.
3434
@since(version = 0.2.0)
@@ -327,7 +327,7 @@ interface types {
327327
/// May fail with an error-code describing why the file cannot be appended.
328328
///
329329
/// Note: This allows using `write-stream`, which is similar to `write` with
330-
/// `O_APPEND` in in POSIX.
330+
/// `O_APPEND` in POSIX.
331331
@since(version = 0.2.0)
332332
append-via-stream: func() -> result<output-stream, error-code>;
333333

@@ -623,7 +623,7 @@ interface types {
623623
/// replaced. It may also include a secret value chosen by the
624624
/// implementation and not otherwise exposed.
625625
///
626-
/// Implementations are encourated to provide the following properties:
626+
/// Implementations are encouraged to provide the following properties:
627627
///
628628
/// - If the file is not modified or replaced, the computed hash value should
629629
/// usually not change.

test/wit/deps/filesystem/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:filesystem@0.2.2;
1+
package wasi:filesystem@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

test/wit/deps/http/proxy.wit

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
package wasi:http@0.2.2;
1+
package wasi:http@0.2.3;
22

33
/// The `wasi:http/imports` world imports all the APIs for HTTP proxies.
44
/// It is intended to be `include`d in other worlds.
55
@since(version = 0.2.0)
66
world imports {
77
/// HTTP proxies have access to time and randomness.
88
@since(version = 0.2.0)
9-
import wasi:clocks/monotonic-clock@0.2.2;
9+
import wasi:clocks/monotonic-clock@0.2.3;
1010
@since(version = 0.2.0)
11-
import wasi:clocks/wall-clock@0.2.2;
11+
import wasi:clocks/wall-clock@0.2.3;
1212
@since(version = 0.2.0)
13-
import wasi:random/random@0.2.2;
13+
import wasi:random/random@0.2.3;
1414

1515
/// Proxies have standard output and error streams which are expected to
1616
/// terminate in a developer-facing console provided by the host.
1717
@since(version = 0.2.0)
18-
import wasi:cli/stdout@0.2.2;
18+
import wasi:cli/stdout@0.2.3;
1919
@since(version = 0.2.0)
20-
import wasi:cli/stderr@0.2.2;
20+
import wasi:cli/stderr@0.2.3;
2121

2222
/// TODO: this is a temporary workaround until component tooling is able to
2323
/// gracefully handle the absence of stdin. Hosts must return an eof stream
2424
/// for this import, which is what wasi-libc + tooling will do automatically
2525
/// when this import is properly removed.
2626
@since(version = 0.2.0)
27-
import wasi:cli/stdin@0.2.2;
27+
import wasi:cli/stdin@0.2.3;
2828

2929
/// This is the default handler to use when user code simply wants to make an
3030
/// HTTP request (e.g., via `fetch()`).

test/wit/deps/http/types.wit

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
@since(version = 0.2.0)
55
interface types {
66
@since(version = 0.2.0)
7-
use wasi:clocks/monotonic-clock@0.2.2.{duration};
7+
use wasi:clocks/monotonic-clock@0.2.3.{duration};
88
@since(version = 0.2.0)
9-
use wasi:io/streams@0.2.2.{input-stream, output-stream};
9+
use wasi:io/streams@0.2.3.{input-stream, output-stream};
1010
@since(version = 0.2.0)
11-
use wasi:io/error@0.2.2.{error as io-error};
11+
use wasi:io/error@0.2.3.{error as io-error};
1212
@since(version = 0.2.0)
13-
use wasi:io/poll@0.2.2.{pollable};
13+
use wasi:io/poll@0.2.3.{pollable};
1414

1515
/// This type corresponds to HTTP standard Methods.
1616
@since(version = 0.2.0)
@@ -36,7 +36,7 @@ interface types {
3636
}
3737

3838
/// These cases are inspired by the IANA HTTP Proxy Error Types:
39-
/// https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types
39+
/// <https://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types>
4040
@since(version = 0.2.0)
4141
variant error-code {
4242
DNS-timeout,

test/wit/deps/io/error.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
@since(version = 0.2.0)
44
interface error {

test/wit/deps/io/poll.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
/// A poll API intended to let users wait for I/O events on multiple handles
44
/// at once.

test/wit/deps/io/streams.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
/// WASI I/O is an I/O abstraction API which is currently focused on providing
44
/// stream types.

test/wit/deps/io/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:io@0.2.2;
1+
package wasi:io@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

test/wit/deps/random/insecure-seed.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22
/// The insecure-seed interface for seeding hash-map DoS resistance.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

test/wit/deps/random/insecure.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22
/// The insecure interface for insecure pseudo-random numbers.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

test/wit/deps/random/random.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22
/// WASI Random is a random data API.
33
///
44
/// It is intended to be portable at least between Unix-family platforms and

test/wit/deps/random/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:random@0.2.2;
1+
package wasi:random@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

test/wit/deps/sockets/ip-name-lookup.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface ip-name-lookup {
33
@since(version = 0.2.0)
4-
use wasi:io/poll@0.2.2.{pollable};
4+
use wasi:io/poll@0.2.3.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-address};
77

test/wit/deps/sockets/network.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface network {
33
@unstable(feature = network-error-code)
4-
use wasi:io/error@0.2.2.{error};
4+
use wasi:io/error@0.2.3.{error};
55

66
/// An opaque resource that represents access to (a subset of) the network.
77
/// This enables context-based security for networking.

test/wit/deps/sockets/tcp.wit

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
@since(version = 0.2.0)
22
interface tcp {
33
@since(version = 0.2.0)
4-
use wasi:io/streams@0.2.2.{input-stream, output-stream};
4+
use wasi:io/streams@0.2.3.{input-stream, output-stream};
55
@since(version = 0.2.0)
6-
use wasi:io/poll@0.2.2.{pollable};
6+
use wasi:io/poll@0.2.3.{pollable};
77
@since(version = 0.2.0)
8-
use wasi:clocks/monotonic-clock@0.2.2.{duration};
8+
use wasi:clocks/monotonic-clock@0.2.3.{duration};
99
@since(version = 0.2.0)
1010
use network.{network, error-code, ip-socket-address, ip-address-family};
1111

test/wit/deps/sockets/udp.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@since(version = 0.2.0)
22
interface udp {
33
@since(version = 0.2.0)
4-
use wasi:io/poll@0.2.2.{pollable};
4+
use wasi:io/poll@0.2.3.{pollable};
55
@since(version = 0.2.0)
66
use network.{network, error-code, ip-socket-address, ip-address-family};
77

test/wit/deps/sockets/world.wit

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package wasi:sockets@0.2.2;
1+
package wasi:sockets@0.2.3;
22

33
@since(version = 0.2.0)
44
world imports {

0 commit comments

Comments
 (0)