typeof checked against a non-standard string, best not to throw an error at all
commit2be5ff06dbf75071d7347826312741bd53129f59
authorMichael James <michael@michaelbjames.com>
dateTue 29 Jul 2014, 11:49 (12 years ago)
parent9e7ff43
runtime/Init.js−3
@@ -45,9 +45,6 @@ function init(display, container, module, ports, moduleToReplace) {
4545 };
4646
4747 var addDelay = function(d) {
48− if (typeof d !== "number") {
49− throw "addDelay must take a number (preferably an int), not: " + d
50− }
5148 inducedDelay += d;
5249 return inducedDelay;
5350 }