Fix TypeScript readonly error location (#9887)
This commit is contained in:
parent
bf17871b82
commit
d7757f6d08
@ -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)"
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user