on master help sign in
typeof checked against a non-standard string, best not to throw an error at all
2be5ff0Michael James
runtime/Init.js−3
@@ -45,9 +45,6 @@ function init(display, container, module, ports, moduleToReplace) {
45 };
45 };
46
46
47 var addDelay = function(d) {
47 var addDelay = function(d) {
48− if (typeof d !== "number") {
49− throw "addDelay must take a number (preferably an int), not: " + d
50− }
51 inducedDelay += d;
48 inducedDelay += d;
52 return inducedDelay;
49 return inducedDelay;
53 }
50 }