// Copyright 2015 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.functionFoo(a,b){varbname="b";this["a"]=a;this[bname]=b;this.x=this.a+this.b;}varf1=newFoo(3,4);assertEquals(7,f1.x);// SMIsfor(vari=0;i<6;i++){varf=newFoo(i,i+2);assertEquals(i+i+2,f.x);}// derblesfor(vari=0.25;i<6.25;i++){varf=newFoo(i,i+2);assertEquals(i+i+2,f.x);}// stirngsfor(vari=0;i<6;i++){varf=newFoo(i+"",(i+2)+"");assertEquals((i+"")+((i+2)+""),f.x);}