summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js')
-rw-r--r--test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js
index 5df54cfcc..16aa7b4e2 100644
--- a/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js
+++ b/test/built-ins/Object/prototype/propertyIsEnumerable/S15.2.4.7_A2_T2.js
@@ -20,7 +20,9 @@ if (typeof Object.prototype.propertyIsEnumerable !== "function") {
$ERROR('#1: propertyIsEnumerable method is defined');
}
-var obj = {the_property:true};
+var obj = {
+ the_property: true
+};
//CHECK#2
if (typeof obj.propertyIsEnumerable !== "function") {
@@ -33,11 +35,11 @@ if (!(obj.propertyIsEnumerable("the_property"))) {
}
//CHECK#4
-var accum="";
-for(var prop in obj) {
- accum+=prop;
+var accum = "";
+for (var prop in obj) {
+ accum += prop;
}
-if (accum.indexOf("the_property")!==0) {
+if (accum.indexOf("the_property") !== 0) {
$ERROR('#4: enumerating works properly');
}
//