Skip to content

Commit 42f930d

Browse files
Merge pull request #228 from STREGA/fix-warnings-aug-5-23
2 parents c283fa3 + 710a5e3 commit 42f930d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Sources/JavaScriptKit/ConvertibleToJSValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ extension Array where Element == ConvertibleToJSValue {
256256
// fast path for empty array
257257
guard self.count != 0 else { return body([]) }
258258

259-
func _withRawJSValues<T>(
259+
func _withRawJSValues(
260260
_ values: [ConvertibleToJSValue], _ index: Int,
261261
_ results: inout [RawJSValue], _ body: ([RawJSValue]) -> T
262262
) -> T {

Sources/_CJavaScriptBigIntSupport/include/_CJavaScriptKit+I64.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@
88
///
99
/// @param value The value to convert.
1010
/// @param is_signed Whether to treat the value as a signed integer or not.
11+
#if __wasi__
1112
__attribute__((__import_module__("javascript_kit"),
1213
__import_name__("swjs_i64_to_bigint")))
14+
#endif
1315
extern JavaScriptObjectRef _i64_to_bigint(const long long value, bool is_signed);
1416

1517
/// Converts the provided BigInt to an Int64 or UInt64.
1618
///
1719
/// @param ref The target JavaScript object.
1820
/// @param is_signed Whether to treat the return value as a signed integer or not.
21+
#if __wasi__
1922
__attribute__((__import_module__("javascript_kit"),
2023
__import_name__("swjs_bigint_to_i64")))
24+
#endif
2125
extern long long _bigint_to_i64(const JavaScriptObjectRef ref, bool is_signed);
2226

2327
#endif /* _CJavaScriptBigIntSupport_h */

0 commit comments

Comments
 (0)