Skip to content

Commit

Permalink
Remove isError() guards for errors coming from esm/validate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Sep 17, 2018
1 parent 38accbe commit ea100b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/hook/vm.js
Expand Up @@ -311,7 +311,6 @@ function tryValidate(caller, entry, content) {
}

if (Package.state.default.options.debug ||
! isError(error) ||
isStackTraceMasked(error)) {
throw error
}
Expand Down
1 change: 0 additions & 1 deletion src/module/internal/compile.js
Expand Up @@ -313,7 +313,6 @@ function tryValidate(caller, entry, content, filename) {
}

if (Package.state.default.options.debug ||
! isError(error) ||
isStackTraceMasked(error)) {
throw error
}
Expand Down

0 comments on commit ea100b1

Please sign in to comment.