new RegExp/new Error
- Hi folks,
I was wondering - should JSLint tolerate the use of the constructors Error,
EvalError... etc. and RegExp when invoked without `new`.
is the same as
throw new Error(ouch!¹)
work the same.
Will making an exception for those constructors cause inconsistency that is
worse than the few extra `new` operators that can otherwise be removed?
[Non-text portions of this message have been removed]