Don't use "objects" in lib/peg.js

The "objects" module will be removed.

See #442.
redux
David Majda 8 years ago
parent 66ca7e2168
commit 5fbb557f80

@ -1,7 +1,5 @@
"use strict";
let objects = require("./utils/objects");
let peg = {
/* PEG.js version (uses semantic versioning). */
VERSION: "0.10.0",
@ -29,15 +27,14 @@ let peg = {
for (let stage in passes) {
if (passes.hasOwnProperty(stage)) {
converted[stage] = objects.values(passes[stage]);
converted[stage] = Object.keys(passes[stage])
.map(name => passes[stage][name]);
}
}
return converted;
}
options = objects.clone(options);
let plugins = "plugins" in options ? options.plugins : [],
config = {
parser: peg.parser,

Loading…
Cancel
Save