Skip to content

Commit 775899a

Browse files
committed
match more specifically against wasi 0.2.x
Signed-off-by: karthik2804 <karthik.ganeshram@fermyon.com>
1 parent b87cdb2 commit 775899a

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ impl JsBindgen<'_> {
429429
// can be used when an explicit export is not
430430
// defined by the guest content.
431431
if iface_name == "incoming-handler"
432-
|| name.starts_with("wasi:http/incoming-handler@0.2")
432+
|| name.starts_with("wasi:http/incoming-handler@0.2.")
433433
{
434434
if !features.contains(&Features::Http) {
435435
bail!(

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ impl Guest for SpidermonkeyEmbeddingSplicerComponent {
176176
.find(|(key, _)| {
177177
engine_resolve
178178
.name_world_key(key)
179-
.starts_with("wasi:http/incoming-handler@0.2")
179+
.starts_with("wasi:http/incoming-handler@0.2.")
180180
})
181181
.map(|(key, _)| key.clone());
182182

test/builtins/performance.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ export const source = `
1515
};
1616
`;
1717

18-
export async function test (run) {
18+
export async function test(run) {
1919
const { stdout, stderr } = await run();
2020
strictEqual(stdout, 'Calculated fib 1000: 4.346655768693743e+208\n');
2121

2222
ok(stderr.includes(' ms'));
2323
const time = Number(stderr.split(' ms')[0]);
2424
// TODO: fix back to half a millisecond when Weval fix is added
25-
if (time > 3) {
25+
if (time > 4) {
2626
throw new Error('took more than half a millisecond - ' + time + ' ms');
2727
}
2828
}

0 commit comments

Comments
 (0)