catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Assert targets at runtime

Open koddsson opened this issue 5 years ago • 1 comments

We need a way to assert that the target exists in the HTML at runtime.

koddsson avatar Mar 13 '20 15:03 koddsson

Something like throwing a ReferenceError when findTarget returns undefiend (and findTargets returns empty Array) would do the work. I've checked that there is not throw Error in the whole project, so I assume it's not the desired solution.

I know it's an old issue, but there is any code style definition about how to implement it?

Scipion avatar Dec 28 '20 12:12 Scipion