1 var classof = require('../internals/classof-raw');
3 // `thisNumberValue` abstract operation
4 // https://tc39.es/ecma262/#sec-thisnumbervalue
5 module.exports = function (value) {
6 if (typeof value != 'number' && classof(value) != 'Number') {
7 throw TypeError('Incorrect invocation');