Bug 1842773 - Part 8: Implement ArrayBuffer.prototype.resize method. r=sfink