lib/viewer/bundle.js
// Check for illegal assignments to global references.
Check for illegal assignments to global references.
Check for illegal assignments to global references .
function parseReferences(cell, input, globals = defaultGlobals) {
  if (cell.body && cell.body.type !== "ImportDeclaration") {
    try {
      cell.references = findReferences(cell, globals);
    } catch (error) {
      if (error.node) {
        const loc = getLineInfo(input, error.node.start);
        error.message += ` (${loc.line}:${loc.column})`;
        error.pos = error.node.start;
        error.loc = loc;
        delete error.node;
      }
      throw error;
    }
  }
  return cell;
}
function parseReferences ( cell , input , globals = defaultGlobals ) { if ( cell . body && cell . body . type !== "ImportDeclaration" ) { try { cell . references = findReferences ( cell , globals ) ; } catch ( error ) { if ( error . node ) { const loc = getLineInfo ( input , error . node . start ) ; error . message += ` ${ loc . line } ${ loc . column } ` ; error . pos = error . node . start ; error . loc = loc ; delete error . node ; } throw error ; } } return cell ; }
Check for illegal assignments to global references.
Check for illegal assignments to global references .