Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function:
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value,
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value
) {
self.set(
value: JSFunctionValue<repeat (each Arguments), JSPromiseValue<Value>>
Expand All @@ -72,7 +72,7 @@
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function:
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Void,
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Void
) {
self.set(
value: JSFunctionValue<repeat (each Arguments), JSPromiseValue<JSUndefinedValue>>
Expand All @@ -94,7 +94,7 @@
atIndex index: Int,
_ argumentTypes: repeat (each Arguments).Type,
function:
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value,
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value
) {
self.set(
value: JSFunctionValue<repeat (each Arguments), JSPromiseValue<Value>>
Expand Down Expand Up @@ -138,7 +138,7 @@
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function:
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value,
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value
) {
self.globalObject.setAsyncFunction(
forKey: key,
Expand All @@ -157,7 +157,7 @@
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function:
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Void,
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Void
) {
self.globalObject.setAsyncFunction(
forKey: key,
Expand All @@ -179,7 +179,7 @@
atIndex index: Int,
_ argumentTypes: repeat (each Arguments).Type,
function:
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value,
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Value
) {
self.globalObject.setAsyncFunction(
atIndex: index,
Expand All @@ -198,7 +198,7 @@
atIndex index: Int,
_ argumentTypes: repeat (each Arguments).Type,
function:
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Void,
@escaping @Sendable (JSActor<JSContext>, repeat (each Arguments)) async throws -> Void
) {
self.globalObject.setAsyncFunction(
atIndex: index,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ extension JSValue {
public func setFunction<each Arguments: JSValueConvertible, Value: JSValueConvertible>(
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function: @escaping (repeat (each Arguments)) throws -> Value,
function: @escaping (repeat (each Arguments)) throws -> Value
) {
self.set(
value: JSFunctionValue<repeat (each Arguments), Value>(
Expand All @@ -159,7 +159,7 @@ extension JSValue {
public func setFunction<each Arguments: JSValueConvertible>(
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function: @escaping (repeat (each Arguments)) throws -> Void,
function: @escaping (repeat (each Arguments)) throws -> Void
) {
self.set(
value: JSFunctionValue<repeat (each Arguments), JSUndefinedValue>(
Expand All @@ -179,7 +179,7 @@ extension JSValue {
public func setFunction<each Arguments: JSValueConvertible, Value: JSValueConvertible>(
atIndex index: Int,
_ argumentTypes: repeat (each Arguments).Type,
function: @escaping (repeat (each Arguments)) throws -> Value,
function: @escaping (repeat (each Arguments)) throws -> Value
) {
self.set(
value: JSFunctionValue<repeat (each Arguments), Value>(
Expand Down Expand Up @@ -222,7 +222,7 @@ extension JSContext {
public func setFunction<each Arguments: JSValueConvertible, Value: JSValueConvertible>(
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function: @escaping (repeat (each Arguments)) throws -> Value,
function: @escaping (repeat (each Arguments)) throws -> Value
) {
self.globalObject.setFunction(forKey: key, repeat (each argumentTypes), function: function)
}
Expand All @@ -236,7 +236,7 @@ extension JSContext {
public func setFunction<each Arguments: JSValueConvertible>(
forKey key: Any,
_ argumentTypes: repeat (each Arguments).Type,
function: @escaping (repeat (each Arguments)) throws -> Void,
function: @escaping (repeat (each Arguments)) throws -> Void
) {
self.globalObject.setFunction(forKey: key, repeat (each argumentTypes), function: function)
}
Expand All @@ -250,7 +250,7 @@ extension JSContext {
public func setFunction<each Arguments: JSValueConvertible, Value: JSValueConvertible>(
atIndex index: Int,
_ argumentTypes: repeat (each Arguments).Type,
function: @escaping (repeat (each Arguments)) throws -> Value,
function: @escaping (repeat (each Arguments)) throws -> Value
) {
self.globalObject.setFunction(atIndex: index, repeat (each argumentTypes), function: function)
}
Expand All @@ -264,7 +264,7 @@ extension JSContext {
public func setFunction<each Arguments: JSValueConvertible>(
atIndex index: Int,
_ argumentTypes: repeat (each Arguments).Type,
function: @escaping (repeat (each Arguments)) throws -> Void,
function: @escaping (repeat (each Arguments)) throws -> Void
) {
self.globalObject.setFunction(atIndex: index, repeat (each argumentTypes), function: function)
}
Expand Down