-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
index.ts:
import { Test } from "@dylibso/xtp-test";
export function test() {
Test.assert("test", true, "because it's true");
return 0;
}
extism-js v1.3.0
PS D:\dylibso\xtp\cli\app> go run . plugin test https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm --with D:\x\extism\assertbug\dist\plugin.wasm
thread '<unnamed>' panicked at crates/core/src/globals.rs:486:26:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Error: wasm error: unreachable
wasm stack trace:
.$1260(i32,i32,i32,i32,i32)
.$1406(i32,i32)
.$1397(i32,i32,i32)
.$1422(i32)
.$68(i32,i32,i32)
.$364(i32,i32)
.$363(i32,i64,i64,i32,i32,i32) i64
.$461(i32,i64,i64,i64,i32,i32,i32) i64
.$454(i32,i64,i64,i32,i32,i32) i64
.$461(i32,i64,i64,i64,i32,i32,i32) i64
.$461(i32,i64,i64,i64,i32,i32,i32) i64
.$461(i32,i64,i64,i64,i32,i32,i32) i64
.$227(i32,i32,i32)
.$1478(i32) i32
.$1495() i32
Log file: C:\Users\muham\AppData\Local\cache\xtp\xtp-1733249505-27836.log
exit status 1
extism-js v1.2.0
PS D:\dylibso\xtp\cli\app> go run . plugin test https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm --with D:\x\extism\assertbug\dist\plugin.wasm
assert called
🧪 Testing https://github.com/extism/plugins/releases/latest/download/count_vowels.wasm (D:\x\extism\assertbug\dist\plugin.wasm)
PASS ...... test
1/1 tests passed (completed in 42.5µs)
Full Repro: mhmd-azeez/assertbug
Metadata
Metadata
Assignees
Labels
No labels