re-run rewrite scripts

This commit is contained in:
Kevin Gibbons 2024-03-25 12:45:09 -07:00 committed by Philip Chimento
parent 927a70d4df
commit decf9f2526
6 changed files with 26 additions and 22 deletions

View File

@ -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
});

View File

@ -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
});

View File

@ -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');
});

View File

@ -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
});

View File

@ -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
});

View File

@ -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');
});