|
Last change
on this file since cdcff72 was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
242 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var ToUint8 = require('./ToUint8');
|
|---|
| 4 |
|
|---|
| 5 | // https://262.ecma-international.org/6.0/#sec-toint8
|
|---|
| 6 |
|
|---|
| 7 | module.exports = function ToInt8(argument) {
|
|---|
| 8 | var int8bit = ToUint8(argument);
|
|---|
| 9 | return int8bit >= 0x80 ? int8bit - 0x100 : int8bit;
|
|---|
| 10 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.