lib/handlebars/compiler/visitor.js
function(node, name) {
    this.acceptKey(node, name);

    if (!node[name]) {
      throw new Exception(node.type + ' requires ' + name);
    }
  }
function(node, name) {
    this.acceptKey(node, name);

    if (!node[name]) {
      throw new Exception(node.type + ' requires ' + name);
    }
  }
function ( node , name ) { this . acceptKey ( node , name ) ; if ( ! node [ name ] ) { throw new Exception ( node . type + ' requires ' + name ) ; } }
Performs an accept operation with added sanity check to ensure required keys are not removed.
Performs an accept operation with added sanity check to ensure required keys are not removed .