swc_core::ecma::utils::swc_common::errorsStatic HANDLER
pub static HANDLER: ScopedKey<Handler>
Available on crate features __ecma
and __utils
only.
Expand description
Used for error reporting in transform.
This should be only used for errors from the api which does not returning errors.
e.g.
parser
should not use this.
transforms
should use this to report error, as it does not return Result.
See Handler for actual usage examples.