1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-20 14:11:35 +02:00

remove warn throwing since console.warn includes callsites now

This commit is contained in:
Ian Storm Taylor
2017-05-03 18:33:05 -07:00
parent 460498b5dd
commit 2e3b294fd3

View File

@@ -16,15 +16,6 @@ function warn(message, ...args) {
if (typeof console !== 'undefined') {
console.warn(`Warning: ${message}`, ...args) // eslint-disable-line no-console
}
try {
// --- Welcome to debugging Slate! ---
// This error was thrown as a convenience so that you can use this stack
// to find the callsite that caused this warning to fire.
throw new Error(message)
} catch (x) {
// This error is only for debugging.
}
}
/**