js: Convert static/js/blueslip.js to ES6 module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-03-16 15:38:59 -07:00
committed by Steve Howell
parent b0ceaa1ea0
commit 3ef6f6e2e2
123 changed files with 155 additions and 44 deletions

View File

@@ -120,9 +120,7 @@ const templatesPath = staticPath + "templates" + path.sep;
exports.complain_about_unused_mocks = function () {
for (const filename of module_mocks.keys()) {
if (!used_module_mocks.has(filename)) {
throw new Error(
`You asked to mock ${filename} but we never saw it during compilation.`,
);
console.error(`You asked to mock ${filename} but we never saw it during compilation.`);
}
}
};