diff --git a/src/javascript/lib/core/erlang_compat/maps.js b/src/javascript/lib/core/erlang_compat/maps.js
index <HASH>..<HASH> 100644
--- a/src/javascript/lib/core/erlang_compat/maps.js
+++ b/src/javascript/lib/core/erlang_compat/maps.js
@@ -13,7 +13,8 @@ function is_non_primitive(key) {
     erlang.is_map(key) ||
     erlang.is_pid(key) ||
     erlang.is_reference(key) ||
-    erlang.is_bitstring(key)
+    erlang.is_bitstring(key) ||
+    erlang.is_tuple(key)
   );
 }
Make sure to check for tuples