diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2023-02-27 21:20:58 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2023-03-04 23:40:32 -0800 |
commit | 9d7b57221d405fda3a317949b4aadfa2d1116210 (patch) | |
tree | 799535ec3ad874cb82e1b98c838d99e238652e9a /installed-tests/js/modules/badOverrides2/WarnLib.js | |
parent | e9dfa02f1d7df0ef2155600633b833efb3fa5477 (diff) | |
download | gjs-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.js | 3 |
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> |