From 89e95b3f143682ed9a006991bacf45c9dcba4818 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:43:05 +0800 Subject: remove node_modules --- .../runtime/helpers/builtin/wrapNativeSuper.js | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 node_modules/@babel/runtime/helpers/builtin/wrapNativeSuper.js (limited to 'node_modules/@babel/runtime/helpers/builtin/wrapNativeSuper.js') diff --git a/node_modules/@babel/runtime/helpers/builtin/wrapNativeSuper.js b/node_modules/@babel/runtime/helpers/builtin/wrapNativeSuper.js deleted file mode 100644 index 3c2fc5ed..00000000 --- a/node_modules/@babel/runtime/helpers/builtin/wrapNativeSuper.js +++ /dev/null @@ -1,39 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf"); - -var setPrototypeOf = require("./setPrototypeOf"); - -var construct = require("./construct"); - -function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - - module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - - _cache.set(Class, Wrapper); - } - - function Wrapper() {} - - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return setPrototypeOf(Wrapper, setPrototypeOf(function Super() { - return construct(Class, arguments, getPrototypeOf(this).constructor); - }, Class)); - }; - - return _wrapNativeSuper(Class); -} - -module.exports = _wrapNativeSuper; \ No newline at end of file -- cgit v1.2.3