Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
9
node_modules/es-abstract/2017/NumberToRawBytes.js
generated
vendored
9
node_modules/es-abstract/2017/NumberToRawBytes.js
generated
vendored
|
|
@ -1,8 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var hasOwnProperty = require('./HasOwnProperty');
|
||||
var ToInt16 = require('./ToInt16');
|
||||
|
|
@ -12,7 +10,6 @@ var ToUint16 = require('./ToUint16');
|
|||
var ToUint32 = require('./ToUint32');
|
||||
var ToUint8 = require('./ToUint8');
|
||||
var ToUint8Clamp = require('./ToUint8Clamp');
|
||||
var Type = require('./Type');
|
||||
|
||||
var valueToFloat32Bytes = require('../helpers/valueToFloat32Bytes');
|
||||
var valueToFloat64Bytes = require('../helpers/valueToFloat64Bytes');
|
||||
|
|
@ -51,10 +48,10 @@ module.exports = function NumberToRawBytes(type, value, isLittleEndian) {
|
|||
if (typeof type !== 'string' || !hasOwnProperty(TypeToSizes, type)) {
|
||||
throw new $TypeError('Assertion failed: `type` must be a TypedArray element type: ' + keys(TypeToSizes));
|
||||
}
|
||||
if (Type(value) !== 'Number') {
|
||||
if (typeof value !== 'number') {
|
||||
throw new $TypeError('Assertion failed: `value` must be a Number');
|
||||
}
|
||||
if (Type(isLittleEndian) !== 'Boolean') {
|
||||
if (typeof isLittleEndian !== 'boolean') {
|
||||
throw new $TypeError('Assertion failed: `isLittleEndian` must be a Boolean');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue