1 /* Any copyright is dedicated to the Public Domain.
2 * http://creativecommons.org/publicdomain/zero/1.0/ */
5 add_task(async function() {
7 () => ChromeUtils.import("resource://test/error_import.sys.mjs"),
8 /use ChromeUtils.importESModule instead/,
9 "Error should be caught and suggest ChromeUtils.importESModule"
13 () => ChromeUtils.import("resource://test/error_export.sys.mjs"),
14 /use ChromeUtils.importESModule instead/,
15 "Error should be caught and suggest ChromeUtils.importESModule"
19 () => ChromeUtils.import("resource://test/error_other.sys.mjs"),
20 /expected expression, got end of script/,
21 "Error should be caught but should not suggest ChromeUtils.importESModule"