improve babylon test coverage and remove dead code

This commit is contained in:
Sebastian McKenzie
2015-07-25 19:54:19 +01:00
parent 2598299e64
commit 676766533c
20 changed files with 267 additions and 76 deletions

View File

@@ -121,7 +121,6 @@ pp.jsxReadString = function(quote) {
pp.jsxReadEntity = function() {
var str = "", count = 0, entity;
var ch = this.input[this.state.pos];
if (ch !== "&") this.raise(this.state.pos, "Entity must start with an ampersand");
var startPos = ++this.state.pos;
while (this.state.pos < this.input.length && count++ < 10) {