Closed nwoltman closed 5 years ago
With this code
new Error()
the Error constructor has the scope
Error
support.class.error.js
but it seems like it should be
support.class.builtin.error.js
Without the support.class.builtin part, the Error constructor doesn't get highlighted like the other built-in constructors (Array, Date, etc.).
support.class.builtin
Array
Date
This is consistent with the core JavaScript syntax. It seems sensible to change this; if you open an issue on the core Packages tracker, I can probably get to it soon.
With this code
the
Error
constructor has the scopebut it seems like it should be
Without the
support.class.builtin
part, theError
constructor doesn't get highlighted like the other built-in constructors (Array
,Date
, etc.).