|
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:
255 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | var ToUint16 = require('./ToUint16');
|
|---|
| 4 |
|
|---|
| 5 | // https://262.ecma-international.org/6.0/#sec-toint16
|
|---|
| 6 |
|
|---|
| 7 | module.exports = function ToInt16(argument) {
|
|---|
| 8 | var int16bit = ToUint16(argument);
|
|---|
| 9 | return int16bit >= 0x8000 ? int16bit - 0x10000 : int16bit;
|
|---|
| 10 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.