Fix TypeScript readonly error location (#9887)

This commit is contained in:
Brian Ng
2019-04-23 10:47:22 -04:00
committed by Henry Zhu
parent 84da8344a3
commit 74d4613bcd
5 changed files with 7 additions and 9 deletions
@@ -743,7 +743,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
return;
default:
this.raise(
node.operator,
node.start,
"'readonly' type modifier is only permitted on array and tuple literal types.",
);
}
@@ -1,7 +1,5 @@
{
"sourceType": "module",
"plugins": [
"typescript"
],
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:NaN)"
}
"plugins": ["typescript"],
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:11)"
}
@@ -3,5 +3,5 @@
"plugins": [
"typescript"
],
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:NaN)"
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:11)"
}
@@ -3,5 +3,5 @@
"plugins": [
"typescript"
],
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:NaN)"
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:11)"
}
@@ -3,5 +3,5 @@
"plugins": [
"typescript"
],
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:NaN)"
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:11)"
}