summaryrefslogtreecommitdiff
path: root/installed-tests/js/modules/badOverrides2/WarnLib.js
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2023-02-27 21:20:58 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2023-03-04 23:40:32 -0800
commit9d7b57221d405fda3a317949b4aadfa2d1116210 (patch)
tree799535ec3ad874cb82e1b98c838d99e238652e9a /installed-tests/js/modules/badOverrides2/WarnLib.js
parente9dfa02f1d7df0ef2155600633b833efb3fa5477 (diff)
downloadgjs-9d7b57221d405fda3a317949b4aadfa2d1116210.tar.gz
repo: Check that GI module override function is callable
Previously, we would return the override function if it was null, or a non-callable object, and then try to call it. Add tests for this case.
Diffstat (limited to 'installed-tests/js/modules/badOverrides2/WarnLib.js')
-rw-r--r--installed-tests/js/modules/badOverrides2/WarnLib.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/installed-tests/js/modules/badOverrides2/WarnLib.js b/installed-tests/js/modules/badOverrides2/WarnLib.js
new file mode 100644
index 00000000..b2c93b05
--- /dev/null
+++ b/installed-tests/js/modules/badOverrides2/WarnLib.js
@@ -0,0 +1,3 @@
+// Sabotage the import of imports.gi.WarnLib!
+// SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+// SPDX-FileCopyrightText: 2023 Philip Chimento <philip.chimento@gmail.com>