Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
fix: update error for undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Mar 28, 2018
1 parent 6c732de commit 7e1b39e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ const visitors: EvaluateMap = {
const { name } = node.argument;
$var = scope.hasBinding(name);
if (!$var) {
throw new Error(`${name} 未定义`);
throw ErrNotDefined(name);
}
} else if (isMemberExpression(node.argument)) {
const argument = node.argument;
Expand Down

0 comments on commit 7e1b39e

Please sign in to comment.