diff options
Diffstat (limited to 'test/built-ins/Function/S15.3_A3_T1.js')
-rw-r--r-- | test/built-ins/Function/S15.3_A3_T1.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/built-ins/Function/S15.3_A3_T1.js b/test/built-ins/Function/S15.3_A3_T1.js index 97d3d2ec9..8574cfb87 100644 --- a/test/built-ins/Function/S15.3_A3_T1.js +++ b/test/built-ins/Function/S15.3_A3_T1.js @@ -11,7 +11,11 @@ description: First argument is object //CHECK#1 - does not throw var f = Function.call(mars, "return name;"); -var mars={name:"mars", color:"red", number:4}; +var mars = { + name: "mars", + color: "red", + number: 4 +}; var f = Function.call(mars, "this.godname=\"ares\"; return this.color;"); @@ -23,6 +27,6 @@ if (about_mars !== undefined) { } //CHECK#3 -if (this.godname !== "ares" && mars.godname===undefined) { +if (this.godname !== "ares" && mars.godname === undefined) { $ERROR('#3: When applied to the Function object itself, thisArg should be ignored'); } |