Skip to content

Commit

Permalink
re-run rewrite scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Mar 25, 2024
1 parent 7b1829d commit 1d0670c
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 22 deletions.
11 changes: 6 additions & 5 deletions test/built-ins/DataView/prototype/getFloat16/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ features: [Float16Array]
includes: [propertyHelper.js]
---*/

assert.sameValue(DataView.prototype.getFloat16.length, 1);

verifyNotEnumerable(DataView.prototype.getFloat16, "length");
verifyNotWritable(DataView.prototype.getFloat16, "length");
verifyConfigurable(DataView.prototype.getFloat16, "length");
verifyProperty(DataView.prototype.getFloat16, "length", {
value: 1,
writable: false,
enumerable: false,
configurable: true
});
11 changes: 6 additions & 5 deletions test/built-ins/DataView/prototype/getFloat16/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ features: [Float16Array]
includes: [propertyHelper.js]
---*/

assert.sameValue(DataView.prototype.getFloat16.name, "getFloat16");

verifyNotEnumerable(DataView.prototype.getFloat16, "name");
verifyNotWritable(DataView.prototype.getFloat16, "name");
verifyConfigurable(DataView.prototype.getFloat16, "name");
verifyProperty(DataView.prototype.getFloat16, "name", {
value: "getFloat16",
writable: false,
enumerable: false,
configurable: true
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ assert.sameValue(

assert.throws(TypeError, () => {
let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat16(0, 0);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.getFloat16(0, 0)` throws TypeError');
});

11 changes: 6 additions & 5 deletions test/built-ins/DataView/prototype/setFloat16/length.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ features: [Float16Array]
includes: [propertyHelper.js]
---*/

assert.sameValue(DataView.prototype.setFloat16.length, 2);

verifyNotEnumerable(DataView.prototype.setFloat16, "length");
verifyNotWritable(DataView.prototype.setFloat16, "length");
verifyConfigurable(DataView.prototype.setFloat16, "length");
verifyProperty(DataView.prototype.setFloat16, "length", {
value: 2,
writable: false,
enumerable: false,
configurable: true
});
11 changes: 6 additions & 5 deletions test/built-ins/DataView/prototype/setFloat16/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ features: [Float16Array]
includes: [propertyHelper.js]
---*/

assert.sameValue(DataView.prototype.setFloat16.name, "setFloat16");

verifyNotEnumerable(DataView.prototype.setFloat16, "name");
verifyNotWritable(DataView.prototype.setFloat16, "name");
verifyConfigurable(DataView.prototype.setFloat16, "name");
verifyProperty(DataView.prototype.setFloat16, "name", {
value: "setFloat16",
writable: false,
enumerable: false,
configurable: true
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ assert.sameValue(

assert.throws(TypeError, () => {
let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat16(0, 0);
}, '`let dv = new DataView(new ArrayBuffer(16)); new dv.setFloat16(0, 0)` throws TypeError');
});

0 comments on commit 1d0670c

Please sign in to comment.