Skip to content

Commit 721f662

Browse files
authored
Fix typo: rename BridgeJSInstrincics to BridgeJSIntrinsics (#485)
* Fix typo: rename `BridgeJSInstrincics` to `BridgeJSIntrinsic` * Rename`BridgeJSIntrincics.h` * Fix typo in modulemap header filename * Fix typo in documentation comment for IntrinsicJSFragment * Rename BridgeJSIntrinsic.swift to BridgeJSIntrinsics.swift * Fix typo in BridgeJSIntrinsics reference
1 parent 7704862 commit 721f662

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ These changes require updating the pre-generated Swift bindings committed to the
114114
115115
**Adding new BridgeJS intrinsics:**
116116
117-
If you add new `@_extern(wasm, module: "bjs")` functions to [`BridgeJSInstrincics.swift`](Sources/JavaScriptKit/BridgeJSInstrincics.swift), also add corresponding stub entries to [`Plugins/PackageToJS/Templates/instantiate.js`](Plugins/PackageToJS/Templates/instantiate.js) in the `importObject["bjs"]` object. This allows packages without BridgeJS-generated code to instantiate successfully.
117+
If you add new `@_extern(wasm, module: "bjs")` functions to [`BridgeJSIntrinsics.swift`](Sources/JavaScriptKit/BridgeJSIntrinsics.swift), also add corresponding stub entries to [`Plugins/PackageToJS/Templates/instantiate.js`](Plugins/PackageToJS/Templates/instantiate.js) in the `importObject["bjs"]` object. This allows packages without BridgeJS-generated code to instantiate successfully.
118118
119119
## Support
120120
If you have any questions or need assistance, feel free to reach out via [GitHub Issues](https://github.com/swiftwasm/JavaScriptKit/issues) or [Discord](https://discord.gg/ashJW8T8yp).

Plugins/BridgeJS/Sources/BridgeJSLink/JSGlueGen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ final class JSGlueVariableScope {
7878

7979
/// A fragment of JS code used to convert a value between Swift and JS.
8080
///
81-
/// See `BridgeJSInstrincics.swift` in the main JavaScriptKit module for Swift side lowering/lifting implementation.
81+
/// See `BridgeJSIntrinsics.swift` in the main JavaScriptKit module for Swift side lowering/lifting implementation.
8282
struct IntrinsicJSFragment: Sendable {
8383
/// The names of the parameters that the fragment expects.
8484
let parameters: [String]
File renamed without changes.

Sources/_CJavaScriptKit/include/BridgeJSInstrincics.h renamed to Sources/_CJavaScriptKit/include/BridgeJSIntrinsics.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _CJavaScriptKit_BridgeJSInstrincics_h
2-
#define _CJavaScriptKit_BridgeJSInstrincics_h
1+
#ifndef _CJavaScriptKit_BridgeJSIntrinsics_h
2+
#define _CJavaScriptKit_BridgeJSIntrinsics_h
33

44
#include <stdint.h>
55
#include "WasmGlobalMacros.h"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module _CJavaScriptKit {
22
header "_CJavaScriptKit.h"
3-
header "BridgeJSInstrincics.h"
3+
header "BridgeJSIntrinsics.h"
44
export *
55
}

0 commit comments

Comments
 (0)