diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/io/binary/type-serializers.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/io/binary/type-serializers.js
index <HASH>..<HASH> 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/io/binary/type-serializers.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/structure/io/binary/type-serializers.js
@@ -169,7 +169,7 @@ class UuidSerializer {
 
     const uuid_str = String(item)
       .replace(/^urn:uuid:/, '')
-      .replaceAll(/[{}-]/g, '');
+      .replace(/[{}-]/g, '');
 
     const bufs = [];
     if (fullyQualifiedFormat)
Switch from String.replaceAll to String.replace for support of older JS/node