Skip to content

Commit

Permalink
Make index a normal property of Position instead of a non-enumerable …
Browse files Browse the repository at this point in the history
…property.

Reviewed by @tolmasky.
  • Loading branch information
tolmasky committed Jan 30, 2022
1 parent 498aa69 commit 88cb9a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/babel-parser/src/util/location.js
Expand Up @@ -15,9 +15,7 @@ export class Position {
constructor(line: number, col: number, index: number) {
this.line = line;
this.column = col;

// this.index = index;
Object.defineProperty(this, "index", { enumerable: false, value: index });
this.index = index;
}
}

Expand Down

0 comments on commit 88cb9a3

Please sign in to comment.