File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ public enum _JSFunctionConstructorSymbol {
6
6
7
7
public class JSFunctionRef : JSObjectRef {
8
8
@discardableResult
9
- public func callAsFunction( this: JSObjectRef ? = nil , _ arguments : [ JSValueConvertible ] ) -> JSValue {
10
- let result = arguments . withRawJSValues { rawValues in
9
+ func callAsFunction( this: JSObjectRef ? = nil , args : [ JSValueConvertible ] ) -> JSValue {
10
+ let result = args . withRawJSValues { rawValues in
11
11
rawValues. withUnsafeBufferPointer { bufferPointer -> RawJSValue in
12
12
let argv = bufferPointer. baseAddress
13
13
let argc = bufferPointer. count
@@ -29,8 +29,8 @@ public class JSFunctionRef: JSObjectRef {
29
29
}
30
30
31
31
@discardableResult
32
- public func callAsFunction( this: JSObjectRef ? = nil , _ arguments : JSValueConvertible ... ) -> JSValue {
33
- self ( this: this, arguments )
32
+ public func callAsFunction( this: JSObjectRef ? = nil , _ args : JSValueConvertible ... ) -> JSValue {
33
+ self ( this: this, args : args )
34
34
}
35
35
36
36
public func callAsFunction( new arguments: JSValueConvertible ... ) -> JSObjectRef {
You can’t perform that action at this time.
0 commit comments