Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, function (node) {
if (node.type === 'Program') ast = node
scan.visitScope(node)
// also collect requires while we're here
if (isRequire(node)) {
var argument = node.arguments[0]
var required = argument.type === 'Literal' ? argument.value : null
if (required !== null && moduleExists(row.deps[required])) {
var other = rows.byId[row.deps[required]]
if (isOrderUnpredictable(node)) {
if (!alreadyPredictablyEvaluated.has(other)) {
other[kEvaluateOnDemand] = true
}
} else {
alreadyPredictablyEvaluated.add(other)
}
requireCalls.push({