We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac92be3 commit 35005efCopy full SHA for 35005ef
Runtime/src/index.ts
@@ -27,6 +27,14 @@ export class SwiftRuntime {
27
28
setInstance(instance: WebAssembly.Instance) {
29
this._instance = instance;
30
+ if (typeof (this.exports as any)._start === "function") {
31
+ throw new Error(
32
+ `JavaScriptKit supports only WASI reactor ABI.
33
+ Please make sure you are building with:
34
+ -Xswiftc -Xclang-linker -Xswiftc -mexec-model=reactor
35
+ `
36
+ );
37
+ }
38
if (this.exports.swjs_library_version() != this.version) {
39
throw new Error(
40
`The versions of JavaScriptKit are incompatible.
0 commit comments