Sign in
cobalt
/
cobalt
/
6f3fc44129ff775165447b31ee68e7cc0ca9dedd
/
.
/
src
/
third_party
/
devtools
/
node_modules
/
core-js
/
internals
/
to-offset.js
blob: 8c511fcd9565ed7e2cbea48644eeeba24f798296 [
file
] [
log
] [
blame
]
var
toPositiveInteger
=
require
(
'../internals/to-positive-integer'
);
module
.
exports
=
function
(
it
,
BYTES
)
{
var
offset
=
toPositiveInteger
(
it
);
if
(
offset
%
BYTES
)
throw
RangeError
(
'Wrong offset'
);
return
offset
;
};