From cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Mar 2019 21:01:33 +0100 Subject: remove node_modules --- node_modules/es5-ext/math/trunc/implement.js | 8 -------- node_modules/es5-ext/math/trunc/index.js | 5 ----- node_modules/es5-ext/math/trunc/is-implemented.js | 7 ------- node_modules/es5-ext/math/trunc/shim.js | 13 ------------- 4 files changed, 33 deletions(-) delete mode 100644 node_modules/es5-ext/math/trunc/implement.js delete mode 100644 node_modules/es5-ext/math/trunc/index.js delete mode 100644 node_modules/es5-ext/math/trunc/is-implemented.js delete mode 100644 node_modules/es5-ext/math/trunc/shim.js (limited to 'node_modules/es5-ext/math/trunc') diff --git a/node_modules/es5-ext/math/trunc/implement.js b/node_modules/es5-ext/math/trunc/implement.js deleted file mode 100644 index 1ecc124cd..000000000 --- a/node_modules/es5-ext/math/trunc/implement.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "trunc", { value: require("./shim"), - configurable: true, -enumerable: false, -writable: true }); -} diff --git a/node_modules/es5-ext/math/trunc/index.js b/node_modules/es5-ext/math/trunc/index.js deleted file mode 100644 index 94c02691a..000000000 --- a/node_modules/es5-ext/math/trunc/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() - ? Math.trunc - : require("./shim"); diff --git a/node_modules/es5-ext/math/trunc/is-implemented.js b/node_modules/es5-ext/math/trunc/is-implemented.js deleted file mode 100644 index b1507352e..000000000 --- a/node_modules/es5-ext/math/trunc/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var trunc = Math.trunc; - if (typeof trunc !== "function") return false; - return (trunc(13.67) === 13) && (trunc(-13.67) === -13); -}; diff --git a/node_modules/es5-ext/math/trunc/shim.js b/node_modules/es5-ext/math/trunc/shim.js deleted file mode 100644 index bf6ac8cce..000000000 --- a/node_modules/es5-ext/math/trunc/shim.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var floor = Math.floor; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (value === Infinity) return Infinity; - if (value === -Infinity) return -Infinity; - if (value > 0) return floor(value); - return -floor(-value); -}; -- cgit v1.2.3