Skip to content

Commit

Permalink
match more specifically against wasi 0.2.x
Browse files Browse the repository at this point in the history
Signed-off-by: karthik2804 <[email protected]>
  • Loading branch information
karthik2804 committed Jan 16, 2025
1 parent b87cdb2 commit 775899a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/spidermonkey-embedding-splicer/src/bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ impl JsBindgen<'_> {
// can be used when an explicit export is not
// defined by the guest content.
if iface_name == "incoming-handler"
|| name.starts_with("wasi:http/[email protected]")
|| name.starts_with("wasi:http/[email protected].")
{
if !features.contains(&Features::Http) {
bail!(
Expand Down
2 changes: 1 addition & 1 deletion crates/spidermonkey-embedding-splicer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl Guest for SpidermonkeyEmbeddingSplicerComponent {
.find(|(key, _)| {
engine_resolve
.name_world_key(key)
.starts_with("wasi:http/[email protected]")
.starts_with("wasi:http/[email protected].")
})
.map(|(key, _)| key.clone());

Expand Down
4 changes: 2 additions & 2 deletions test/builtins/performance.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ export const source = `
};
`;

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

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

0 comments on commit 775899a

Please sign in to comment.