Don't use "arrays" in lib/compiler/passes/generate-bytecode.js

The "arrays" module will be removed.

See #442.
redux
David Majda 8 years ago
parent 4dec5e52ba
commit 33f23ee4be

@ -1,7 +1,6 @@
"use strict";
let arrays = require("../../utils/arrays"),
objects = require("../../utils/objects"),
let objects = require("../../utils/objects"),
asts = require("../asts"),
visitor = require("../visitor"),
op = require("../opcodes"),
@ -194,7 +193,7 @@ function generateBytecode(ast) {
let consts = [];
function addConst(value) {
let index = arrays.indexOf(consts, value);
let index = consts.indexOf(value);
return index === -1 ? consts.push(value) - 1 : index;
}

Loading…
Cancel
Save