File tree 1 file changed +2
-6
lines changed
internal/code-gen/script-wrappers/v8gen
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,6 @@ type V8InstanceInvocationResult struct {
330
330
}
331
331
332
332
func (c V8InstanceInvocation ) PerformCall () (genRes V8InstanceInvocationResult ) {
333
- args := []g.Generator {}
334
333
genRes .HasError = c .Op .GetHasError ()
335
334
genRes .HasValue = c .Op .HasResult () // != "undefined"
336
335
var stmt * jen.Statement
@@ -348,15 +347,12 @@ func (c V8InstanceInvocation) PerformCall() (genRes V8InstanceInvocationResult)
348
347
stmt = stmt .Op (":=" )
349
348
}
350
349
351
- for _ , a := range c .Args {
352
- args = append (args , a )
353
- }
354
350
list := g.StatementListStmt {}
355
351
var evaluation g.Value
356
352
if c .Instance == nil {
357
- evaluation = g .NewValue (idlNameToGoName (c .Name )).Call (args ... )
353
+ evaluation = g .NewValue (idlNameToGoName (c .Name )).Call (c . Args ... )
358
354
} else {
359
- evaluation = c .Instance .Method (idlNameToGoName (c .Name )).Call (args ... )
355
+ evaluation = c .Instance .Method (idlNameToGoName (c .Name )).Call (c . Args ... )
360
356
}
361
357
if stmt == nil {
362
358
list .Append (evaluation )
You can’t perform that action at this time.
0 commit comments