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

The "objects" module will be removed.

See #442.
redux
David Majda 8 years ago
parent 8a75d19468
commit d2569b9bf3

@ -1,7 +1,6 @@
"use strict";
let objects = require("../../utils/objects"),
asts = require("../asts"),
let asts = require("../asts"),
op = require("../opcodes"),
js = require("../js");
@ -1279,8 +1278,8 @@ function generateJS(ast, options) {
},
amd: function() {
let dependencyIds = objects.values(options.dependencies),
dependencyVars = Object.keys(options.dependencies),
let dependencyVars = Object.keys(options.dependencies),
dependencyIds = dependencyIds.map(v => options.dependencies[v]),
dependencies = '['
+ dependencyIds.map(
id => '"' + js.stringEscape(id) + '"'
@ -1317,8 +1316,8 @@ function generateJS(ast, options) {
umd: function() {
let parts = [],
dependencyIds = objects.values(options.dependencies),
dependencyVars = Object.keys(options.dependencies),
dependencyIds = dependencyIds.map(v => options.dependencies[v]),
dependencies = '['
+ dependencyIds.map(
id => '"' + js.stringEscape(id) + '"'

Loading…
Cancel
Save