@phoddie reported a subtle bug in Moddable XS that would have been caught by some testing here:
function speciesCtor() {
throw new Error("species constructor should not be invoked");
}
speciesCtor[Symbol.species] = speciesCtor;
const ab = new ArrayBuffer();
ab.constructor = speciesCtor;
ab.transfer();
This is applicable to transfer, transferToFixedLength, sliceToImmutable, and transferToImmutable.
@phoddie reported a subtle bug in Moddable XS that would have been caught by some testing here:
This is applicable to
transfer,transferToFixedLength,sliceToImmutable, andtransferToImmutable.