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

Commit 9878355

Browse files
committed
remove Parser static
1 parent 625f32b commit 9878355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function Parser(text, parseStrings){
224224
this.index = 0;
225225
}
226226

227-
Parser.ZERO = function(){
227+
ZERO = function(){
228228
return 0;
229229
};
230230

@@ -452,7 +452,7 @@ Parser.prototype = {
452452
if (this.expect('+')) {
453453
return this.primary();
454454
} else if (token = this.expect('-')) {
455-
return this._binary(Parser.ZERO, token.fn, this.unary());
455+
return this._binary(ZERO, token.fn, this.unary());
456456
} else if (token = this.expect('!')) {
457457
return this._unary(token.fn, this.unary());
458458
} else {

0 commit comments

Comments
 (0)