summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js')
-rw-r--r--test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js37
1 files changed, 21 insertions, 16 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
index 91068d57c..1f51f9870 100644
--- a/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
+++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-293-3.js
@@ -13,22 +13,27 @@ description: >
is not thrown when updating the [[Value]] attribute value of
'name' which is defined as non-writable and configurable (10.6
[[DefineOwnProperty]] step 3 and step 5.b)
-includes:
- - runTestCase.js
- - dataPropertyAttributesAreCorrect.js
+includes: [propertyHelper.js]
+flags: [noStrict]
---*/
-function testcase() {
- return (function (a, b, c) {
- Object.defineProperty(arguments, "0", {
- value: 10,
- writable: false,
- });
- Object.defineProperty(arguments, "0", {
- value: 20
- });
- var verifyFormal = a === 10;
- return dataPropertyAttributesAreCorrect(arguments, "0", 20, false, true, true) && verifyFormal;
- }(0, 1, 2));
+(function (a, b, c) {
+ Object.defineProperty(arguments, "0", {
+ value: 10,
+ writable: false,
+ });
+ Object.defineProperty(arguments, "0", {
+ value: 20
+ });
+ if (a !== 10) {
+ $ERROR('Expected "a === 10", actually ' + a);
}
-runTestCase(testcase);
+
+ verifyEqualTo(arguments, "0", 20);
+
+ verifyNotWritable(arguments, "0");
+
+ verifyEnumerable(arguments, "0");
+
+ verifyConfigurable(arguments, "0");
+}(0, 1, 2));