aswi2020vldc-gitlab/templetes/node_modules/es-abstract/2017/ToInt8.js @ 4605a44b
1 |
'use strict'; |
---|---|
2 |
|
3 |
var ToUint8 = require('./ToUint8'); |
4 |
|
5 |
// https://www.ecma-international.org/ecma-262/6.0/#sec-toint8
|
6 |
|
7 |
module.exports = function ToInt8(argument) { |
8 |
var int8bit = ToUint8(argument); |
9 |
return int8bit >= 0x80 ? int8bit - 0x100 : int8bit; |
10 |
};
|