GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove `swjs_library_version` · t089/JavaScriptKit@653deb5

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • Runtime/src
    • index.ts
    • types.ts
  • Sources
    • JavaScriptKit/Runtime
      • index.js
      • index.mjs
    • _CJavaScriptKit
      • _CJavaScriptKit.c
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎Runtime/src/index.ts‎

Copy file name to clipboardExpand all lines: Runtime/src/index.ts
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ export class SwiftRuntime {
5656
`
5757
);
5858
}
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-
}
6759
}
6860

6961
main() {
Collapse file

‎Runtime/src/types.ts‎

Copy file name to clipboardExpand all lines: Runtime/src/types.ts
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export type JavaScriptValueKind = number;
77
export type JavaScriptValueKindAndFlags = number;
88

99
export interface ExportedFunctions {
10-
swjs_library_version(): number;
1110
swjs_library_features(): number;
1211
swjs_prepare_host_function_call(size: number): pointer;
1312
swjs_cleanup_host_function_call(argv: pointer): void;
Collapse file

‎Sources/JavaScriptKit/Runtime/index.js‎

Copy file name to clipboardExpand all lines: Sources/JavaScriptKit/Runtime/index.js
-4Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎Sources/JavaScriptKit/Runtime/index.mjs‎

Copy file name to clipboardExpand all lines: Sources/JavaScriptKit/Runtime/index.mjs
-4Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎Sources/_CJavaScriptKit/_CJavaScriptKit.c‎

Copy file name to clipboardExpand all lines: Sources/_CJavaScriptKit/_CJavaScriptKit.c
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ extern void *memcpy (void *__restrict, const void *__restrict, size_t);
1313
#include <stdbool.h>
1414

1515
#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-
}
2316

2417
__attribute__((export_name("swjs_prepare_host_function_call")))
2518
void *swjs_prepare_host_function_call(const int argc) {

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.