Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ec53089

Browse files
committed
chore($controller): don't use new for minErr instance
minErr creates a new error anyways, it's not meant to be called as a constructor.
1 parent 7bb50e2 commit ec53089

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ng/controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function $ControllerProvider() {
9191
if (isString(expression)) {
9292
match = expression.match(CNTRL_REG);
9393
if (!match) {
94-
throw new $controllerMinErr('ctrlfmt',
94+
throw $controllerMinErr('ctrlfmt',
9595
"Badly formed controller string '{0}'. " +
9696
"Must match `__name__ as __id__` or `__name__`.", expression);
9797
}

0 commit comments

Comments
 (0)