Created
March 29, 2024 17:59
-
-
Save greggman/63723dc1f085420a5ff3f15697af7295 to your computer and use it in GitHub Desktop.
Test post message sending error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*bug-in-github-api-content-can-not-be-empty*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*bug-in-github-api-content-can-not-be-empty*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const s = ` | |
try { | |
const a = new Array(-1); | |
} catch (e) { | |
postMessage(e); | |
} | |
`; | |
const blob = new Blob([s], {type: 'application/javascript'}); | |
const url = URL.createObjectURL(blob); | |
const w = new Worker(url); | |
w.onmessage = function(e) { | |
console.log(e.data); | |
console.log(e.data.stack); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"Test post message sending error","settings":{},"filenames":["index.html","index.css","index.js"]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment