清空
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
var toPositiveInteger = require('../internals/to-positive-integer');
|
||||
|
||||
var $RangeError = RangeError;
|
||||
|
||||
module.exports = function (it, BYTES) {
|
||||
var offset = toPositiveInteger(it);
|
||||
if (offset % BYTES) throw new $RangeError('Wrong offset');
|
||||
return offset;
|
||||
};
|
||||
Reference in New Issue
Block a user