GeezerVison is showing github.com — Remove `swjs_library_version` · t089/JavaScriptKit@653deb5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: Runtime/src/index.ts -8Lines changed: 0 additions & 8 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -56,14 +56,6 @@ export class SwiftRuntime { |
56 | 56 | ` |
57 | 57 | ); |
58 | 58 | } |
59 | | - if (this.exports.swjs_library_version() != this.version) { |
60 | | - throw new Error( |
61 | | - `The versions of JavaScriptKit are incompatible. |
62 | | - WebAssembly runtime ${this.exports.swjs_library_version()} != JS runtime ${ |
63 | | - this.version |
64 | | - }` |
65 | | - ); |
66 | | - } |
67 | 59 | } |
68 | 60 |
|
69 | 61 | main() { |
|
Collapse file
Copy file name to clipboardExpand all lines: Runtime/src/types.ts -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,6 @@ export type JavaScriptValueKind = number; |
7 | 7 | export type JavaScriptValueKindAndFlags = number; |
8 | 8 |
|
9 | 9 | export interface ExportedFunctions { |
10 | | - swjs_library_version(): number; |
11 | 10 | swjs_library_features(): number; |
12 | 11 | swjs_prepare_host_function_call(size: number): pointer; |
13 | 12 | swjs_cleanup_host_function_call(argv: pointer): void; |
|
Collapse file
Copy file name to clipboardExpand all lines: Sources/JavaScriptKit/Runtime/index.js -4Lines changed: 0 additions & 4 deletions Collapse file
Copy file name to clipboardExpand all lines: Sources/JavaScriptKit/Runtime/index.mjs -4Lines changed: 0 additions & 4 deletions Collapse file
Copy file name to clipboardExpand all lines: Sources/_CJavaScriptKit/_CJavaScriptKit.c -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,13 +13,6 @@ extern void *memcpy (void *__restrict, const void *__restrict, size_t); |
13 | 13 | #include <stdbool.h> |
14 | 14 |
|
15 | 15 | #endif |
16 | | -/// The compatibility runtime library version. |
17 | | -/// Notes: If you change any interface of runtime library, please increment |
18 | | -/// this and `SwiftRuntime.version` in `./Runtime/src/index.ts`. |
19 | | -__attribute__((export_name("swjs_library_version"))) |
20 | | -int swjs_library_version(void) { |
21 | | - return 708; |
22 | | -} |
23 | 16 |
|
24 | 17 | __attribute__((export_name("swjs_prepare_host_function_call"))) |
25 | 18 | void *swjs_prepare_host_function_call(const int argc) { |
|