Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function literalAssignments(node, stack, currentDepth) {
let top = stack.length - 1;
let literal;
try {
literal = Codec.Stack.Read.readStack(
{
location: "stack",
from: top - Codec.Ast.Utils.stackSize(node) + 1,
to: top
},
{
stack,
storage: {} //irrelevant, but let's respect the type signature :)
}
);
} catch (error) {
literal = undefined; //not sure if this is right, but this is what would
//happen before, so I figure it's safe?
}
let assignment = makeAssignment(