summaryrefslogtreecommitdiff
path: root/installed-tests
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2022-06-09 05:07:15 +0200
committerPhilip Chimento <philip.chimento@gmail.com>2022-11-16 21:41:21 -0800
commit58269399ff3ffded19db3821786f14c9e34e84db (patch)
treeff5a4b04274363ca3c16e4efd7f00b3d541909f0 /installed-tests
parent9437fd81e22bd4a12b24ce8c54ac9682c8b68586 (diff)
downloadgjs-58269399ff3ffded19db3821786f14c9e34e84db.tar.gz
signals: Use a Dict to associate connection IDs to objects
We often reference connection IDs, so now we can use a more optimized native way to handle connections without having to iterate them all the times. This could have been implemented using the newer Map() object, but sadly it's still way slower than using normal objects.
Diffstat (limited to 'installed-tests')
-rw-r--r--installed-tests/js/testSignals.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/installed-tests/js/testSignals.js b/installed-tests/js/testSignals.js
index dea3f41a..3779b277 100644
--- a/installed-tests/js/testSignals.js
+++ b/installed-tests/js/testSignals.js
@@ -67,7 +67,7 @@ function testSignals(klass) {
`No signal connection ${firstId} found`);
// poke in private implementation to sanity-check no handlers left
- expect(foo._signalConnections.length).toEqual(0);
+ expect(Object.keys(foo._signalConnections).length).toEqual(0);
});
it('distinguishes multiple signals', function () {