Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 493670
Collapse All | Expand All

(-)a/bundles/org.eclipse.orion.client.javascript/web/acorn/dist/acorn_loose.js (-1 / +8 lines)
Lines 789-795 var lp = _state.LooseParser.prototype; Link Here
789
lp.parseTopLevel = function () {
789
lp.parseTopLevel = function () {
790
  var node = this.startNodeAt(this.options.locations ? [0, _.getLineInfo(this.input, 0)] : 0);
790
  var node = this.startNodeAt(this.options.locations ? [0, _.getLineInfo(this.input, 0)] : 0);
791
  node.body = [];
791
  node.body = [];
792
  while (this.tok.type !== _.tokTypes.eof) node.body.push(this.parseStatement());
792
  // ORION prevent V8 bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=493670
793
  while (this.tok.type !== _.tokTypes.eof) {
794
    var stmt = this.parseStatement();
795
    if (stmt.end === stmt.start) {
796
      break;
797
    }
798
    node.body.push(stmt);
799
  }
793
  this.last = this.tok;
800
  this.last = this.tok;
794
  if (this.options.ecmaVersion >= 6) {
801
  if (this.options.ecmaVersion >= 6) {
795
    node.sourceType = this.options.sourceType;
802
    node.sourceType = this.options.sourceType;

Return to bug 493670