diff options
author | Matt Godbolt <matt@godbolt.org> | 2021-05-28 18:08:05 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2021-05-28 18:08:05 -0500 |
commit | a4edf7ed6bc51e73635faae652c631b4e0f13647 (patch) | |
tree | 53e1efb35bb97e2282226cb04c2d49405c463952 /lib/compilers/python.js | |
parent | b5a6b45a9801d30998304b45d688701b943ae55f (diff) | |
download | compiler-explorer-a4edf7ed6bc51e73635faae652c631b4e0f13647.tar.gz compiler-explorer-a4edf7ed6bc51e73635faae652c631b4e0f13647.zip |
No array for each
Diffstat (limited to 'lib/compilers/python.js')
-rw-r--r-- | lib/compilers/python.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/python.js b/lib/compilers/python.js index 4afd6acd5..085e5a193 100644 --- a/lib/compilers/python.js +++ b/lib/compilers/python.js @@ -46,7 +46,7 @@ export class PythonCompiler extends BaseCompiler { let lastLineNo = null; let sourceLoc = null; - bytecodeLines.forEach(line => { + for (const line of bytecodeLines) { const match = line.match(lineRe); if (match) { @@ -61,7 +61,7 @@ export class PythonCompiler extends BaseCompiler { } bytecodeResult.push({text: line, source: sourceLoc}); - }); + } return {asm: bytecodeResult}; } |