X-Git-Url: http://git.openwrt.org/?p=feed%2Frouting.git;a=blobdiff_plain;f=cjdns%2Fpatches%2F001-five-mins-builder-zonk.patch;fp=cjdns%2Fpatches%2F001-five-mins-builder-zonk.patch;h=c53c62f4d7abceb20f9ce7c311774c6cc0170af1;hp=3128fb8bd2429b5a35b764c7d7d349699c644ac0;hb=217330bb5e7c17cc2e9f116f8a853f2e5fb86697;hpb=09d5ceb9230b907029a3e09858ef181ff85e3913 diff --git a/cjdns/patches/001-five-mins-builder-zonk.patch b/cjdns/patches/001-five-mins-builder-zonk.patch index 3128fb8..c53c62f 100644 --- a/cjdns/patches/001-five-mins-builder-zonk.patch +++ b/cjdns/patches/001-five-mins-builder-zonk.patch @@ -1,13 +1,13 @@ --- a/node_build/builder.js +++ b/node_build/builder.js -@@ -215,8 +215,8 @@ var execJs = function (js, builder, file - js = qs.join("'"); +@@ -277,8 +277,8 @@ const execJs = function (js, ctx, file, + js = '"use strict";' + qs.join("'"); - var to = setTimeout(function () { + const to = setTimeout(function () { - throw new Error("Inline JS did not return after 120 seconds [" + js + "]"); - }, 120000); + throw new Error("Inline JS did not return after 5 minutes [" + js + "]"); + }, 300000); - var REQUIRE = function (str) { - if (typeof(str) !== 'string') { + nThen(function (waitFor) { +