summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/DataView/prototype/setInt32
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/DataView/prototype/setInt32')
-rw-r--r--js/src/tests/test262/built-ins/DataView/prototype/setInt32/length.js11
-rw-r--r--js/src/tests/test262/built-ins/DataView/prototype/setInt32/name.js11
-rw-r--r--js/src/tests/test262/built-ins/DataView/prototype/setInt32/not-a-constructor.js2
3 files changed, 13 insertions, 11 deletions
diff --git a/js/src/tests/test262/built-ins/DataView/prototype/setInt32/length.js b/js/src/tests/test262/built-ins/DataView/prototype/setInt32/length.js
index 57bcc4db46..9d1fe1515a 100644
--- a/js/src/tests/test262/built-ins/DataView/prototype/setInt32/length.js
+++ b/js/src/tests/test262/built-ins/DataView/prototype/setInt32/length.js
@@ -23,10 +23,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(DataView.prototype.setInt32.length, 2);
-
-verifyNotEnumerable(DataView.prototype.setInt32, "length");
-verifyNotWritable(DataView.prototype.setInt32, "length");
-verifyConfigurable(DataView.prototype.setInt32, "length");
+verifyProperty(DataView.prototype.setInt32, "length", {
+ value: 2,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/DataView/prototype/setInt32/name.js b/js/src/tests/test262/built-ins/DataView/prototype/setInt32/name.js
index 54f2572e30..22c81b434b 100644
--- a/js/src/tests/test262/built-ins/DataView/prototype/setInt32/name.js
+++ b/js/src/tests/test262/built-ins/DataView/prototype/setInt32/name.js
@@ -19,10 +19,11 @@ info: |
includes: [propertyHelper.js]
---*/
-assert.sameValue(DataView.prototype.setInt32.name, "setInt32");
-
-verifyNotEnumerable(DataView.prototype.setInt32, "name");
-verifyNotWritable(DataView.prototype.setInt32, "name");
-verifyConfigurable(DataView.prototype.setInt32, "name");
+verifyProperty(DataView.prototype.setInt32, "name", {
+ value: "setInt32",
+ writable: false,
+ enumerable: false,
+ configurable: true
+});
reportCompare(0, 0);
diff --git a/js/src/tests/test262/built-ins/DataView/prototype/setInt32/not-a-constructor.js b/js/src/tests/test262/built-ins/DataView/prototype/setInt32/not-a-constructor.js
index 2f73e1a327..43cc02faf8 100644
--- a/js/src/tests/test262/built-ins/DataView/prototype/setInt32/not-a-constructor.js
+++ b/js/src/tests/test262/built-ins/DataView/prototype/setInt32/not-a-constructor.js
@@ -29,7 +29,7 @@ assert.sameValue(
assert.throws(TypeError, () => {
let dv = new DataView(new ArrayBuffer(16)); new dv.setInt32(0, 0);
-}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setInt32(0, 0)` throws TypeError');
+});
reportCompare(0, 0);