File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Sources/JavaScriptKit/FundamentalObjects Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ public class JSFunction: JSObject {
98
98
}
99
99
100
100
final func invokeNonThrowingJSFunction( arguments: [ ConvertibleToJSValue ] ) -> RawJSValue {
101
- arguments. withRawJSValues { rawValues in
101
+ let id = self . id
102
+ return arguments. withRawJSValues { rawValues in
102
103
rawValues. withUnsafeBufferPointer { bufferPointer in
103
104
let argv = bufferPointer. baseAddress
104
105
let argc = bufferPointer. count
@@ -118,7 +119,8 @@ public class JSFunction: JSObject {
118
119
}
119
120
120
121
final func invokeNonThrowingJSFunction( arguments: [ ConvertibleToJSValue ] , this: JSObject ) -> RawJSValue {
121
- arguments. withRawJSValues { rawValues in
122
+ let id = self . id
123
+ return arguments. withRawJSValues { rawValues in
122
124
rawValues. withUnsafeBufferPointer { bufferPointer in
123
125
let argv = bufferPointer. baseAddress
124
126
let argc = bufferPointer. count
You can’t perform that action at this time.
0 commit comments