MCPcopy Index your code
hub / github.com/spritejs/spritejs / _isNativeReflectConstruct

Function _isNativeReflectConstruct

lib/node/cloud.js:40–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
39
40function _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; } }
41
42var _amount = Symbol('amount');
43

Callers 1

_createSuperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected