Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9d6f247

Browse files
committed
[WIP] Allow while (true), revert one $parse change
1 parent 4ab2433 commit 9d6f247

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.eslintrc-base.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Possible errors
66
"comma-dangle": ["error", "never"],
77
"no-cond-assign": ["error", "except-parens"],
8-
"no-constant-condition": "error",
8+
"no-constant-condition": ["error", {"checkLoops": false}],
99
"no-control-regex": "error",
1010
"no-debugger": "error",
1111
"no-dupe-args": "error",

src/ng/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ AST.prototype = {
400400

401401
program: function() {
402402
var body = [];
403-
for (;;) {
403+
while (true) {
404404
if (this.tokens.length > 0 && !this.peek('}', ')', ';', ']'))
405405
body.push(this.expressionStatement());
406406
if (!this.expect(';')) {

0 commit comments

Comments
 (0)