Created attachment 412527 [details] Not all errors (in module) are captured by the listener Some syntax errors are not captured by the event listener when originated in a module. Syntax errors inside a module in situations like: function a() { // missing closing bracket won’t get captured by the listener. While other errors like: const a = 1 a = 2 will get captured, even when generated inside the module. This works as expected in FF and Chrome. In the attachment a demo with 4 examples.
<rdar://problem/70770789>