diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-09-04 10:25:37 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-10-11 14:40:18 +0000 |
commit | a4852b1ee77a913f6cc4806e6606c1b720e8f40b (patch) | |
tree | ac430430bf167465153485974e31fb4d9f723e75 /tests/auto/qml/qjsengine/exporterror1.mjs | |
parent | b6f7fe1f80e6beed62ef47691fae6aa9f4a851b8 (diff) |
Fix error reporting when imports or re-exports in modules fail
Collect the location of the import/export statement and include it in
the exception thrown.
Change-Id: I7966dfd53ed67d2d7087acde2dd8ff67c64cb044
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests/auto/qml/qjsengine/exporterror1.mjs')
-rw-r--r-- | tests/auto/qml/qjsengine/exporterror1.mjs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qml/qjsengine/exporterror1.mjs b/tests/auto/qml/qjsengine/exporterror1.mjs new file mode 100644 index 0000000000..9ce9aa3b83 --- /dev/null +++ b/tests/auto/qml/qjsengine/exporterror1.mjs @@ -0,0 +1,2 @@ +let dummy = 0; +export { nothere } from "./testmodule.mjs"; |