Initial project import
This commit is contained in:
23
node_modules/maath/dist/isNativeReflectConstruct-5594d075.esm.js
generated
vendored
Normal file
23
node_modules/maath/dist/isNativeReflectConstruct-5594d075.esm.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
function _setPrototypeOf(o, p) {
|
||||
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
||||
o.__proto__ = p;
|
||||
return o;
|
||||
};
|
||||
|
||||
return _setPrototypeOf(o, p);
|
||||
}
|
||||
|
||||
function _isNativeReflectConstruct() {
|
||||
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
||||
if (Reflect.construct.sham) return false;
|
||||
if (typeof Proxy === "function") return true;
|
||||
|
||||
try {
|
||||
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export { _setPrototypeOf as _, _isNativeReflectConstruct as a };
|
||||
Reference in New Issue
Block a user