diff -urp webkitgtk-2.49.90.orig/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm webkitgtk-2.49.90/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
--- webkitgtk-2.49.90.orig/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2025-08-29 02:21:25.029516000 -0500
+++ webkitgtk-2.49.90/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2025-09-10 14:12:40.620308904 -0500
@@ -37,7 +37,6 @@ use constant FileNamePrefix => "JS";
 use Carp qw<longmess>;
 use Data::Dumper;
 use Hasher;
-use List::Util qw(uniq);
 
 my $codeGenerator;
 my $writeDependencies;
@@ -111,6 +110,22 @@ my $headerTemplate = << "EOF";
 */
 EOF
 
+sub uniq
+{
+  my (@l) = sort @_;
+  my ($i);
+
+  for ($i = 1; $i < @l; $i++)
+  {
+    if ($l[$i] eq $l[$i - 1])
+    {
+      splice(@l, $i, 1);
+    }
+  }
+
+  return @l;
+}
+
 sub assert
 {
     my $message = shift;
