Closed
Description
How is one supposed to use arguments in JSClosure
? Is it necessary to unpack them manually from the JSValue
array? If I try to do that, I get an error message about ambiguous use of subscript(dynamicMember:)
:
JSClosure { (arguments: [JSValue]) in
guard let item = arguments.first, let deviceId = item.string else {
// item in item.string causes error: ambiguous use of 'subscript(dynamicMember:)'
return .undefined
}
// ...
}
Metadata
Metadata
Assignees
Labels
No labels