Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Warning(message) {
- // ES5 15.11.2.1
- this.message = typeof message === "undefined" ? "" : String(message);
- }
- Warning.prototype = new Error();
- Warning.prototype.constructor = Warning;
- // ES5 15.11.4.2 and 15.11.4.3
- Warning.prototype.name = "Warning";
- Warning.prototype.message = "";
Add Comment
Please, Sign In to add comment