MCPcopy
hub / github.com/microsoft/SandDance / _tryBlock

Function _tryBlock

docs/tests/v2/es6/js/sanddance.js:8689–8697  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

8687}
8688
8689function _tryBlock(block) {
8690 var error;
8691 try {
8692 block();
8693 } catch (e) {
8694 error = e;
8695 }
8696 return error;
8697}
8698
8699function _throws(shouldThrow, block, expected, message) {
8700 var actual;

Callers 1

_throwsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected