Skip to content

Commit a531c68

Browse files
authored
Deprecate sep argument to makeSetValue. NFC (#19240)
This argument was not actually being used anywhere. Its last usage was removed in #18678.
1 parent 4f4b0e6 commit a531c68

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/parseTools.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,20 +357,21 @@ function makeGetValue(ptr, pos, type, noNeedFirst, unsigned, ignore, align) {
357357
* @param {bool} noNeedFirst Whether to ignore the offset in the pointer itself.
358358
* @param {bool} ignore: legacy, ignored.
359359
* @param {number} align: legacy, ignored.
360-
* @param {string} sep: TODO
360+
* @param {string} sep: legacy, ignored.
361361
* @return {TODO}
362362
*/
363-
function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, sep = ';') {
363+
function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, sep) {
364364
assert(typeof align === 'undefined', 'makeSetValue no longer supports align parameter');
365365
assert(typeof noNeedFirst === 'undefined', 'makeSetValue no longer supports noNeedFirst parameter');
366+
assert(typeof sep === 'undefined', 'makeSetValue no longer supports sep parameter');
366367
if (type == 'i64' && (!WASM_BIGINT || !MEMORY64)) {
367368
// If we lack either BigInt support or Memory64 then we must fall back to an
368369
// unaligned read of a 64-bit value: without BigInt we do not have HEAP64,
369370
// and without Memory64 i64 fields are not guaranteed to be aligned to 64
370371
// bits, so HEAP64[ptr>>3] might be broken.
371372
return '(tempI64 = [' + splitI64(value) + '],' +
372-
makeSetValue(ptr, pos, 'tempI64[0]', 'i32', noNeedFirst, ignore, align, ',') + ',' +
373-
makeSetValue(ptr, getFastValue(pos, '+', getNativeTypeSize('i32')), 'tempI64[1]', 'i32', noNeedFirst, ignore, align, ',') + ')';
373+
makeSetValue(ptr, pos, 'tempI64[0]', 'i32') + ',' +
374+
makeSetValue(ptr, getFastValue(pos, '+', getNativeTypeSize('i32')), 'tempI64[1]', 'i32') + ')';
374375
}
375376

376377
const offset = calcFastOffset(ptr, pos);

0 commit comments

Comments
 (0)