Optional
message: stringmessage content.
In DEV mode, this function will
confirm
or alert
function is available in global scope),debugger
breakpoint,try...catch
) present on the stack trace, such unhandled error might
cause unexpected behavior (as there is an unhandled error bubbling up).console.assert
function.
In PROD mode, this function does nothing. Bundler should be optimizing such call away.Thus, please note that this function may or may not stop the caller's code execution.
In DEV environment, emits an error message. This is usally used to indicate a critial failure during development process.