2 lines
4.4 KiB
JavaScript
2 lines
4.4 KiB
JavaScript
var worker=function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var r,o,a;o=[e],void 0===(a="function"==typeof(r=function(t){"use strict";function e(){n=this}var n,r;function o(){}function a(t,e){null!=Error.captureStackTrace?Error.captureStackTrace(t,e):t.stack=(new Error).stack}function i(t,e,n){Error.call(t),function(t,e,n){if(!c(t,"message")){var r,o=e;if(null==o){var a=n;r=null==a?null:a.toString()}else r=o;var i=r;t.message=null==i?void 0:i}c(t,"cause")||(t.cause=n),t.name=Object.getPrototypeOf(t).constructor.name}(t,e,n)}function c(t,e){return Object.getPrototypeOf(t).hasOwnProperty(e)}function u(t,e){var n=y(t,4294901760)*y(e,65535),r=y(t,65535)*e;return n+r|0}function s(){a(this,s)}function p(){a(this,p)}function l(){a(this,l)}function f(t){return function(t){i(t,null,null),s.call(t)}(t),p.call(t),t}function m(){var t,e=(f(t=Object.create(l.prototype)),l.call(t),t);return a(e,m),e}function y(t,e){return t&e}function _(t,e){this._name=t,this._age=e}function g(){r=this,this._id="<id not set>"}function d(t){this._$boundThis=t}return s.prototype=Object.create(Error.prototype),s.prototype.constructor=s,p.prototype=Object.create(s.prototype),p.prototype.constructor=p,l.prototype=Object.create(p.prototype),l.prototype.constructor=l,e.prototype.toString=function(){return"kotlin.Unit"},e.$metadata$={simpleName:"Unit",kind:"object",interfaces:[]},o.$metadata$={simpleName:"KCallable",kind:"interface",interfaces:[]},s.$metadata$={simpleName:"Exception",kind:"class",interfaces:[]},p.$metadata$={simpleName:"RuntimeException",kind:"class",interfaces:[]},l.$metadata$={simpleName:"ClassCastException",kind:"class",interfaces:[]},_.prototype._get_name__0=function(){return this._name},_.prototype._get_age_=function(){return this._age},_.prototype.component1=function(){return this._name},_.prototype.component2=function(){return this._age},_.prototype.copy=function(t,e){return new _(t,e)},_.prototype.copy$default=function(t,e,n,r){var o=0!=(1&n)?this._name:t,a=0!=(2&n)?this._age:e;return this.copy(o,a)},_.prototype.toString=function(){return"WorkerMessage(name="+this._name+", age="+this._age+")"},_.prototype.hashCode=function(){return u(function(t){var e=0,n=t.length,r=0,o=n-1|0;if(r<=o)do{var a=r;r=r+1|0;var i=t.charCodeAt(a);e=u(e,31)+i|0}while(a!==o);return e}(this._name),31)+this._age|0},_.prototype.equals=function(t){if(this===t)return!0;if(!(t instanceof _))return!1;var e=t instanceof _?t:function(){throw m()}();return this._name===e._name&&this._age===e._age},_.$metadata$={simpleName:"WorkerMessage",kind:"class",interfaces:[]},Object.defineProperty(_.prototype,"name",{configurable:!0,get:_.prototype._get_name__0}),Object.defineProperty(_.prototype,"age",{configurable:!0,get:_.prototype._get_age_}),g.prototype.start_0=function(){var t,r;(function(){var t=console;return t.log.apply(t,[].concat([].slice.call(["Worker.start"])))}).call(this),self.onmessage=(t=new d(this),(r=function(r){return t.invoke(r),null==n&&new e,n}).callableName=t._get_name__0(),r)},g.prototype.receiveMessage=function(t){if(t instanceof MessageEvent){var e=t.data;(function(){var t=console;return t.log.apply(t,[].concat([].slice.call(["Received message:",e])))}).call(this)}},g.$metadata$={simpleName:"Worker",kind:"object",interfaces:[]},d.prototype.invoke=function(t){return this._$boundThis.receiveMessage(t)},d.prototype._get_name__0=function(){return"receiveMessage"},d.$metadata$={kind:"class",interfaces:[]},t.WorkerMessage=_,(null==r&&new g,r).start_0(),t})?r.apply(e,o):r)||(t.exports=a)}]);
|
|
//# sourceMappingURL=test-worker-message.js.map
|