mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
Remove new keyword from error throwing
This commit is contained in:

committed by
acywatson

parent
a457a3850d
commit
146103ec02
@ -12,7 +12,7 @@
|
||||
// during build.
|
||||
|
||||
function formatProdErrorMessage(code) {
|
||||
throw new Error(
|
||||
throw Error(
|
||||
`Minified Outline error #${code}; see codes.json for the full message or ` +
|
||||
'use the non-minified dev environment for full errors and additional ' +
|
||||
'helpful warnings.',
|
||||
|
Reference in New Issue
Block a user