summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js')
-rw-r--r--js/src/tests/test262/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/js/src/tests/test262/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js b/js/src/tests/test262/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js
index 794b689a98..343a81b5eb 100644
--- a/js/src/tests/test262/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js
+++ b/js/src/tests/test262/built-ins/Object/defineProperty/15.2.3.6-4-320-1.js
@@ -22,19 +22,17 @@ includes: [propertyHelper.js]
});
throw new Test262Error("Expected an exception.");
} catch (e) {
- verifyEqualTo(arguments, "genericProperty", undefined);
-
- verifyNotWritable(arguments, "genericProperty");
-
- verifyNotEnumerable(arguments, "genericProperty");
-
- verifyNotConfigurable(arguments, "genericProperty");
-
if (!(e instanceof TypeError)) {
throw new Test262Error("Expected TypeError, got " + e);
}
-
}
+
+ verifyProperty(arguments, "genericProperty", {
+ value: undefined,
+ writable: false,
+ enumerable: false,
+ configurable: false,
+ });
}(1, 2, 3));
reportCompare(0, 0);