Skip to content

Commit

Permalink
Fix flow errors.
Browse files Browse the repository at this point in the history
Reviewed by @tolmasky.
  • Loading branch information
tolmasky committed Jan 31, 2022
1 parent 259a9c2 commit b060edc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/babel-parser/src/plugins/estree.js
Expand Up @@ -4,14 +4,15 @@ import { type TokenType } from "../tokenizer/types";
import type Parser from "../parser";
import type { ExpressionErrors } from "../parser/util";
import * as N from "../types";
import type { Node as NodeType, NodeBase, File } from "../types";
import type { Position } from "../util/location";
import { Errors } from "../parser/error";

const { defineProperty } = Object;
const toUnenumerable = (object, key) =>
defineProperty(object, key, { enumerable: false, value: object[key] });

function toESTreeLocation(node) {
function toESTreeLocation(node: any) {
toUnenumerable(node.loc.start, "index");
toUnenumerable(node.loc.end, "index");

Expand Down

0 comments on commit b060edc

Please sign in to comment.