summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/S15.3.2.1_A3_T3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Function/S15.3.2.1_A3_T3.js')
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T3.js17
1 files changed, 4 insertions, 13 deletions
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T3.js b/test/built-ins/Function/S15.3.2.1_A3_T3.js
index 29454c2f9..4ba1f0f48 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T3.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T3.js
@@ -19,25 +19,16 @@ description: >
"{toString:function(){throw "body";}}"
---*/
-var p = {
- toString: function() {
- p = 1;
- return "a";
- }
-};
-var body = {
- toString: function() {
- throw "body";
- }
-};
+var p = {toString:function(){p=1;return "a";}};
+var body = {toString:function(){throw "body";}};
//CHECK#1
try {
- var f = new Function(p, body);
+ var f = new Function(p,body);
$ERROR('#1: test failed');
} catch (e) {
if (e !== "body") {
- $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
+ $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
}
}