summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-11-02 20:09:10 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-11-02 20:50:01 -0700
commitee24254bade280ea3c0121c074951396863393ac (patch)
tree9142b48a8728efb53cb91b8540ea4a1c7c48d429 /js
parentedd12b90a8cc169bb226fcaf273973765844ce0d (diff)
Rename EnvPair to KeyValue.
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()!;
}