Created
April 29, 2020 03:40
-
-
Save jakerobers/a5d5074a552ca875673526c7af66c8fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import assert from 'assert' | |
function warn(msg) { | |
assert(console, '`console` is not supported in this environment') | |
assert(console.warn, '`console.warn` is not supported in this environment') | |
console.warn("[validate.js] " + msg) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment