| // Copyright 2009 the Sputnik authors. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| info: Every function instance has a [[Call]] property |
| For testing call (new Function("arg1,arg2","var x =arg1; |
| this.y=arg2;return arg1+arg2;"))("1",2) |
| if ((new Function("arg1,arg2","var x =arg1; this.y=arg2;return arg1+arg2;"))("1",2) !== "12") { |
| $ERROR('#1: Every function instance has a [[Call]] property'); |
| if (typeof x !== "undefined") { |
| $ERROR('#2: Every function instance has a [[Call]] property'); |
| $ERROR('#3: Every function instance has a [[Call]] property'); |