浏览代码

add missing notready exception

Quinn Slack 15 年之前
父节点
当前提交
24d390c4c3
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      core/sjcl.js

+ 6 - 0
core/sjcl.js

@@ -55,6 +55,12 @@ var sjcl = {
     bug: function(message) {
       this.toString = function() { return "BUG: "+this.message; };
       this.message = message;
+    },
+
+    /** @class Something isn't ready. */
+    notready: function(message) {
+      this.toString = function() { return "NOT READY: "+this.message; };
+      this.message = message;
     }
   }
 };