You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
467 B
7 lines
467 B
/**
|
|
* @license
|
|
* Copyright 2019 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
function e(e){const t=new WeakMap;return{postMessage:e.postMessage.bind(e),addEventListener:(s,n)=>{const a=e=>{"handleEvent"in n?n.handleEvent({data:e}):n({data:e})};e.on("message",a),t.set(n,a)},removeEventListener:(s,n)=>{const a=t.get(n);a&&(e.off("message",a),t.delete(n))},start:e.start&&e.start.bind(e)}}export{e as default};
|
|
//# sourceMappingURL=node-adapter.min.mjs.map
|
|
|