From decaf5f161a857ca335ca3dc35a2e20a9a12e712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Wed, 9 Jun 2021 11:23:56 -0400 Subject: [PATCH 1/2] update test fixtures --- .../fixtures/tokens/record-and-tuple/brace-hash/output.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json b/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json index 2902869a677a..1664ad21d6e6 100644 --- a/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json +++ b/packages/babel-parser/test/fixtures/tokens/record-and-tuple/brace-hash/output.json @@ -37,7 +37,7 @@ { "type": { "label": "}", - "beforeExpr": false, + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, From 4023c2bda022aca924ec1d6776fc7e430a32da8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Wed, 9 Jun 2021 11:31:37 -0400 Subject: [PATCH 2/2] chore: typo --- packages/babel-parser/src/tokenizer/context.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-parser/src/tokenizer/context.js b/packages/babel-parser/src/tokenizer/context.js index c8d064826e07..4543b2e19aa3 100644 --- a/packages/babel-parser/src/tokenizer/context.js +++ b/packages/babel-parser/src/tokenizer/context.js @@ -2,7 +2,7 @@ // The token context is used to track whether `}` matches // a template quasi `${` or other tokens containing `{`: -// namely tt.braceL and tt.dollarBraceL +// namely tt.braceL `{` and tt.braceHashL `#{` import { types as tt } from "./types";