Opal-Estate-Pro/node_modules/timers-ext/test/valid-timeout.js

11 lines
200 B
JavaScript
Raw Normal View History

2019-09-13 04:44:33 +02:00
"use strict";
module.exports = function (t, a) {
a(t(NaN), 0, "NaN");
a(t(-343), 0, "Negative");
a(t(232342), 232342, "Positive");
a.throws(function () {
t(1e23);
}, TypeError, "Too large");
};