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

10 lines
351 B
JavaScript

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