summaryrefslogtreecommitdiff
path: root/src/dstr-assignment/obj-rest-skip-non-enumerable.case
diff options
context:
space:
mode:
Diffstat (limited to 'src/dstr-assignment/obj-rest-skip-non-enumerable.case')
-rw-r--r--src/dstr-assignment/obj-rest-skip-non-enumerable.case21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/dstr-assignment/obj-rest-skip-non-enumerable.case b/src/dstr-assignment/obj-rest-skip-non-enumerable.case
index 4acaaca66..79a2ba56f 100644
--- a/src/dstr-assignment/obj-rest-skip-non-enumerable.case
+++ b/src/dstr-assignment/obj-rest-skip-non-enumerable.case
@@ -19,15 +19,18 @@ Object.defineProperty(obj, "x", { value: 4, enumerable: false });
//- vals
obj
//- body
-assert.sameValue(rest.a, 3);
-assert.sameValue(rest.b, 4);
assert.sameValue(Object.getOwnPropertyDescriptor(rest, "x"), undefined);
-verifyEnumerable(rest, "a");
-verifyWritable(rest, "a");
-verifyConfigurable(rest, "a");
-
-verifyEnumerable(rest, "b");
-verifyWritable(rest, "b");
-verifyConfigurable(rest, "b");
+verifyProperty(rest, "a", {
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ value: 3
+});
+verifyProperty(rest, "b", {
+ enumerable: true,
+ writable: true,
+ configurable: true,
+ value: 4
+});