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;
|
return;
|
||||||
default:
|
default:
|
||||||
this.raise(
|
this.raise(
|
||||||
node.operator,
|
node.start,
|
||||||
"'readonly' type modifier is only permitted on array and tuple literal types.",
|
"'readonly' type modifier is only permitted on array and tuple literal types.",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
{
|
{
|
||||||
"sourceType": "module",
|
"sourceType": "module",
|
||||||
"plugins": [
|
"plugins": ["typescript"],
|
||||||
"typescript"
|
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:11)"
|
||||||
],
|
|
||||||
"throws": "'readonly' type modifier is only permitted on array and tuple literal types. (1:NaN)"
|
|
||||||
}
|
}
|
||||||
@ -3,5 +3,5 @@
|
|||||||
"plugins": [
|
"plugins": [
|
||||||
"typescript"
|
"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": [
|
"plugins": [
|
||||||
"typescript"
|
"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": [
|
"plugins": [
|
||||||
"typescript"
|
"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