summaryrefslogtreecommitdiff
path: root/test/built-ins/Function/S15.3.2.1_A1_T2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Function/S15.3.2.1_A1_T2.js')
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T2.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T2.js b/test/built-ins/Function/S15.3.2.1_A1_T2.js
index 0e971af37..a1424960b 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T2.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T2.js
@@ -16,13 +16,17 @@ description: >
1;";}}"
---*/
-var body={toString:function(){return "return 1;";}};
+var body = {
+ toString: function() {
+ return "return 1;";
+ }
+};
//CHECK#1
try {
- var f = new Function(body);
+ var f = new Function(body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +35,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==1) {
+if (f() !== 1) {
$ERROR('#3: hen the Function constructor is called with one argument then body be that argument the following steps are taken...');
}