Guest User

Untitled

a guest
Jun 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function Warning(message) {
  2. // ES5 15.11.2.1
  3. this.message = typeof message === "undefined" ? "" : String(message);
  4. }
  5. Warning.prototype = new Error();
  6. Warning.prototype.constructor = Warning;
  7. // ES5 15.11.4.2 and 15.11.4.3
  8. Warning.prototype.name = "Warning";
  9. Warning.prototype.message = "";
Add Comment
Please, Sign In to add comment