This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Syntax error in directive does not throw exception #15056
Closed
Description
Do you want to request a feature or report a bug?
I am reporting a bug.
What is the current behavior?
If a directive is missing a comma in a particular position, no exception is thrown into the console and the directive does not work. Here is an example, where the missing comma is at the end of line 8 of the JavaScript section:
Working directive: https://jsfiddle.net/derfsubterfuge/y9xd3mdb/
Broken directive: https://jsfiddle.net/derfsubterfuge/2nfy6b4c/1/
The example is using Angular 1.5.8. I have attempted this on Fedora 24 for both Chrome 52.0.2743.116 (64-bit) and Firefox 48.0 (64-bit).
What is the expected behavior?
I would expect a syntax error to be thrown in the console and not swallowed.