Adds deprecation warning for the API calls.

This commit is contained in:
Yury Delendik 2015-10-21 08:54:31 -05:00
parent 58c3ea0820
commit 5135aa9bec
5 changed files with 25 additions and 11 deletions

View file

@ -213,6 +213,11 @@ function warn(msg) {
}
}
// Deprecated API function -- treated as warnings.
function deprecated(details) {
warn('Deprecated API usage: ' + details);
}
// Fatal errors that should trigger the fallback UI and halt execution by
// throwing an exception.
function error(msg) {