From addf0ae7697f01a1bd36889f0b7a6c30e5cf642f Mon Sep 17 00:00:00 2001 From: Ian Henderson Date: Mon, 16 Jul 2018 09:41:39 -0700 Subject: [PATCH] Add 'ENV' to the list of runtime elements that may be exported. (#6855) Adding environment variables is inconvenient for MODULARIZE=1 builds without exporting the ENV object. --- AUTHORS | 1 + src/modules.js | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS b/AUTHORS index 4322ce5f2..43e891207 100644 --- a/AUTHORS +++ b/AUTHORS @@ -351,3 +351,4 @@ a license to everyone to use it as detailed in LICENSE.) * Alexander Bich * Ashleigh Thomas * Veniamin Petrenko +* Ian Henderson diff --git a/src/modules.js b/src/modules.js index 407172bc0..c690bf10b 100644 --- a/src/modules.js +++ b/src/modules.js @@ -376,6 +376,7 @@ function exportRuntime() { 'writeAsciiToMemory', 'addRunDependency', 'removeRunDependency', + 'ENV', 'FS', 'FS_createFolder', 'FS_createPath',