Ticket #10235: 0001-Bug-10235-fixing-determinism-issues-when-packaging-J.patch

File 0001-Bug-10235-fixing-determinism-issues-when-packaging-J.patch, 1.0 KB (added by gk, 7 years ago)
  • toolkit/mozapps/installer/precompile_cache.js

    From ec0389d06d5cc52af0d3a9a570121195b8a79dc3 Mon Sep 17 00:00:00 2001
    From: Georg Koppen <g.koppen@jondos.de>
    Date: Thu, 28 Nov 2013 10:28:58 +0100
    Subject: [PATCH] Bug 10235: fixing determinism issues when packaging
     (JavaScript) resources into omni.ja files; patch by Mike Hommey
    
    ---
     toolkit/mozapps/installer/precompile_cache.js | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/toolkit/mozapps/installer/precompile_cache.js b/toolkit/mozapps/installer/precompile_cache.js
    index f57145b..9ac2ada 100644
    a b function get_modules_under(uri) { 
    6565}
    6666
    6767function load_modules_under(spec, uri) {
    68   var entries = get_modules_under(uri);
     68  var entries = get_modules_under(uri).sort();
    6969  // The precompilation of JS here sometimes reports errors, which we don't
    7070  // really care about. But if the errors are ever reported to xpcshell's
    7171  // error reporter, it will cause it to return an error code, which will break