source: frontend/node_modules/core-js/modules/esnext.data-view.set-uint8-clamped.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 737 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var uncurryThis = require('../internals/function-uncurry-this');
4var aDataView = require('../internals/a-data-view');
5var toIndex = require('../internals/to-index');
6var toUint8Clamped = require('../internals/to-uint8-clamped');
7
8// eslint-disable-next-line es/no-typed-arrays -- safe
9var setUint8 = uncurryThis(DataView.prototype.setUint8);
10
11// `DataView.prototype.setUint8Clamped` method
12// https://github.com/tc39/proposal-dataview-get-set-uint8clamped
13$({ target: 'DataView', proto: true, forced: true }, {
14 setUint8Clamped: function setUint8Clamped(byteOffset, value) {
15 setUint8(
16 aDataView(this),
17 toIndex(byteOffset),
18 toUint8Clamped(value)
19 );
20 }
21});
Note: See TracBrowser for help on using the repository browser.