Safely check for operators as object property key

This commit is contained in:
Richard van Velzen 2016-07-22 09:18:51 +02:00
parent 3f8fc3a316
commit f183d6f74f

View File

@ -1747,7 +1747,7 @@ function parse($TEXT, options) {
a.push(concise);
continue;
}
} else if (start.value === "*") {
} else if (type === "operator") {
unexpected(prev());
}