Skip to content

Commit

Permalink
fix main
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed May 27, 2022
1 parent d256261 commit 4375221
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Expand Up @@ -30,7 +30,7 @@
"extendsType": {
"type": "TSFunctionType",
"start":24,"end":53,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":53,"index":53}},
"parameters": [
"params": [
{
"type": "Identifier",
"start":25,"end":47,"loc":{"start":{"line":1,"column":25,"index":25},"end":{"line":1,"column":47,"index":47},"identifierName":"x"},
Expand Down Expand Up @@ -81,7 +81,7 @@
}
}
],
"typeAnnotation": {
"returnType": {
"type": "TSTypeAnnotation",
"start":49,"end":53,"loc":{"start":{"line":1,"column":49,"index":49},"end":{"line":1,"column":53,"index":53}},
"typeAnnotation": {
Expand Down
Expand Up @@ -30,8 +30,8 @@
"extendsType": {
"type": "TSFunctionType",
"start":24,"end":49,"loc":{"start":{"line":1,"column":24,"index":24},"end":{"line":1,"column":49,"index":49}},
"parameters": [],
"typeAnnotation": {
"params": [],
"returnType": {
"type": "TSTypeAnnotation",
"start":27,"end":49,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":49,"index":49}},
"typeAnnotation": {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-parser/test/helpers/run-fixture-tests.js
Expand Up @@ -113,7 +113,7 @@ function runParseTest(parse, test, onlyCompareErrors) {
// store for each error in the `errors` array. In both cases, we should
// serialize the full error to be able to property test locations,
// reasonCodes, etc.
const throws = !!actual.threw && actual.threw.message;
const throws = actual.threw ? actual.threw.message : undefined;
const optionsLocation = join(testLocation, "options.json");

// We want to throw away the contents of `throws` here.
Expand Down

0 comments on commit 4375221

Please sign in to comment.