summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/os.ts7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/os.ts b/js/os.ts
index 30c974348..a692eeb1a 100644
--- a/js/os.ts
+++ b/js/os.ts
@@ -81,12 +81,11 @@ export function codeCache(
assert(baseRes == null); // Expect null or error.
}
-function createEnv(_inner: msg.EnvironRes): { [index: string]: string } {
+function createEnv(inner: msg.EnvironRes): { [index: string]: string } {
const env: { [index: string]: string } = {};
- for (let i = 0; i < _inner.mapLength(); i++) {
- const item = _inner.map(i)!;
-
+ for (let i = 0; i < inner.mapLength(); i++) {
+ const item = inner.map(i)!;
env[item.key()!] = item.value()!;
}