Skip to content

Commit fc4cfe4

Browse files
committed
Code golfing
1 parent 4096b5d commit fc4cfe4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/worker/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ export class IFrameWorker extends EventTarget implements Worker {
7575
"<script>" +
7676
`postMessage=${postMessage};` +
7777
`importScripts=${importScripts};` +
78-
"addEventListener(\"error\",ev=>{" +
78+
"addEventListener(\"error\",({error})=>{" +
7979
"parent.dispatchEvent(new ErrorEvent(\"error\",{" +
8080
`filename:"${url}",` +
81-
"error:ev.error" +
81+
"error" +
8282
"}))" +
8383
"})" +
8484
"</script>" +

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"strictNullChecks": true,
2424
"strictPropertyInitialization": true,
2525
"stripInternal": true,
26-
"target": "es2017"
26+
"target": "es2020"
2727
},
2828
"include": [
2929
"src",

0 commit comments

Comments
 (0)