diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-11-02 20:09:10 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-02 20:50:01 -0700 |
commit | ee24254bade280ea3c0121c074951396863393ac (patch) | |
tree | 9142b48a8728efb53cb91b8540ea4a1c7c48d429 /js | |
parent | edd12b90a8cc169bb226fcaf273973765844ce0d (diff) |
Rename EnvPair to KeyValue.
Diffstat (limited to 'js')
-rw-r--r-- | js/os.ts | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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()!; } |