diff options
Diffstat (limited to 'test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js')
-rw-r--r-- | test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js index a88cc9e73..9a747b4a1 100644 --- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js +++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js @@ -11,13 +11,19 @@ description: > ("a","b","c")) ---*/ -var i=0; +var i = 0; -var p={toString:function(){return "a"+(++i);}}; +var p = { + toString: function() { + return "a" + (++i); + } +}; -var obj={}; +var obj = {}; -new Function(p,p,p, "this.shifted=a3;").apply( obj,( function(){return arguments;}) ("a","b","c") ); +new Function(p, p, p, "this.shifted=a3;").apply(obj, (function() { + return arguments; +})("a", "b", "c")); //CHECK#1 if (obj["shifted"] !== "c") { |