update modules
This commit is contained in:
13
node_modules/@babel/runtime/helpers/construct.js
generated
vendored
13
node_modules/@babel/runtime/helpers/construct.js
generated
vendored
@@ -1,17 +1,6 @@
|
||||
var setPrototypeOf = require("./setPrototypeOf");
|
||||
|
||||
function isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
||||
try {
|
||||
Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
var isNativeReflectConstruct = require("./isNativeReflectConstruct");
|
||||
|
||||
function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
|
Reference in New Issue
Block a user