Source code
Revision control
Copy as Markdown
Other Tools
onconnect = function(e) {
try {
var port = e.ports[0]
port.postMessage([false, 'no exception thrown'])
source.close()
} catch(e) {
port.postMessage([true, e.code])
}
}