Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Commit 0b0612d

Browse files
committed
better error example
1 parent 1f81f4f commit 0b0612d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ We can then load the module with the dynamic loader:
4949
<script>
5050
System.import('mymodule').then(function(m) {
5151
new m.q();
52-
}).catch(function(e) {
53-
setTimeout(function() {
54-
throw e;
55-
})
56-
})
52+
}).catch(console.error.bind(console));
5753
</script>
5854
```
5955

0 commit comments

Comments
 (0)