UNPKG

@ray-core/runtime

Version:

Ray 是一个全新的基于 React 的小程序开发框架

55 lines (54 loc) 1.81 kB
"use strict"; var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; }; var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i); ar[i] = from[i]; } } return to.concat(ar || Array.prototype.slice.call(from)); }; /* eslint-disable prefer-rest-params */ /* istanbul ignore next */ if (typeof Function.prototype.call === 'undefined') { Function.prototype.call = function (context) { context = context || window; context.fn = this; var args = __spreadArray([], __read(arguments), false).slice(1); var result = context.fn.apply(context, __spreadArray([], __read(args), false)); delete context.fn; return result; }; } /* istanbul ignore next */ if (typeof Function.prototype.apply === 'undefined') { Function.prototype.apply = function (context) { context = context || window; context.fn = this; var result; if (arguments[1]) { result = context.fn.apply(context, __spreadArray([], __read(arguments[1]), false)); } else { result = context.fn(); } delete context.fn; return result; }; }