amis-rpc-design/node_modules/core-js/modules/esnext.data-view.get-uint8-clamped.js
2023-10-07 19:42:30 +08:00

15 lines
500 B
JavaScript

'use strict';
var $ = require('../internals/export');
var uncurryThis = require('../internals/function-uncurry-this');
// eslint-disable-next-line es/no-typed-arrays -- safe
var getUint8 = uncurryThis(DataView.prototype.getUint8);
// `DataView.prototype.getUint8Clamped` method
// https://github.com/tc39/proposal-dataview-get-set-uint8c
$({ target: 'DataView', proto: true, forced: true }, {
getUint8Clamped: function getUint8Clamped(byteOffset) {
return getUint8(this, byteOffset);
}
});