debian-mirror-gitlab/core-js/modules/es.typed-array.uint16-array.js
2019-09-25 13:30:05 +05:30

10 lines
334 B
JavaScript

var typedArrayConstructor = require('../internals/typed-array-constructor');
// `Uint16Array` constructor
// https://tc39.github.io/ecma262/#sec-typedarray-objects
typedArrayConstructor('Uint16', 2, function (init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});