Пример #1
0
 public override EcmaValue Construct(EcmaValue[] arguments, RuntimeObject newTarget)
 {
     if (newTarget == this)
     {
         newTarget = this.TargetFunction;
     }
     return(this.TargetFunction.Construct(ArrayHelper.Combine(this.BoundArgs, arguments), newTarget));
 }
Пример #2
0
 public override EcmaValue Call(EcmaValue thisValue, params EcmaValue[] arguments)
 {
     return(this.TargetFunction.Call(this.BoundThis, ArrayHelper.Combine(this.BoundArgs, arguments)));
 }