massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / this-number-value.js
index d1b7f421db328eb76ed8b75a771f77062cce62f4..974d4aa77a48335cae37daee13675e428c5e057c 100644 (file)
@@ -1,10 +1,5 @@
-var classof = require('../internals/classof-raw');
+var uncurryThis = require('../internals/function-uncurry-this');
 
 // `thisNumberValue` abstract operation
 // https://tc39.es/ecma262/#sec-thisnumbervalue
-module.exports = function (value) {
-  if (typeof value != 'number' && classof(value) != 'Number') {
-    throw TypeError('Incorrect invocation');
-  }
-  return +value;
-};
+module.exports = uncurryThis(1.0.valueOf);