UNPKG

miniapp-web-jsapi

Version:

JSAPI/View adapter for miniprogram running on the web

26 lines 1.81 kB
import _createClass from "@babel/runtime/helpers/createClass"; import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized"; import _inherits from "@babel/runtime/helpers/inherits"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; } function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } export var RpcError = /*#__PURE__*/function (_Error) { _inherits(RpcError, _Error); var _super = _createSuper(RpcError); function RpcError(message) { var _this; _classCallCheck(this, RpcError); _this = _super.call(this, message); _defineProperty(_assertThisInitialized(_this), "resultStatus", void 0); _defineProperty(_assertThisInitialized(_this), "memo", void 0); _defineProperty(_assertThisInitialized(_this), "tips", void 0); _defineProperty(_assertThisInitialized(_this), "extraMessage", void 0); _defineProperty(_assertThisInitialized(_this), "traceId", void 0); return _this; } return _createClass(RpcError); }(/*#__PURE__*/_wrapNativeSuper(Error));