Initial project import
This commit is contained in:
26
node_modules/maath/dist/isNativeReflectConstruct-ddc4ebc1.cjs.dev.js
generated
vendored
Normal file
26
node_modules/maath/dist/isNativeReflectConstruct-ddc4ebc1.cjs.dev.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
exports._isNativeReflectConstruct = _isNativeReflectConstruct;
|
||||
exports._setPrototypeOf = _setPrototypeOf;
|
||||
Reference in New Issue
Block a user