update modules
This commit is contained in:
15
node_modules/@babel/runtime/helpers/esm/construct.js
generated
vendored
15
node_modules/@babel/runtime/helpers/esm/construct.js
generated
vendored
@@ -1,18 +1,5 @@
|
||||
import setPrototypeOf from "./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;
|
||||
}
|
||||
}
|
||||
|
||||
import isNativeReflectConstruct from "./isNativeReflectConstruct";
|
||||
export default function _construct(Parent, args, Class) {
|
||||
if (isNativeReflectConstruct()) {
|
||||
_construct = Reflect.construct;
|
||||
|
Reference in New Issue
Block a user