We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28c1c6e commit 276ac1fCopy full SHA for 276ac1f
CHANGELOG.md
@@ -4,7 +4,7 @@
4
- _...Add new stuff here..._
5
6
### 🐞 Bug fixes
7
-- _...Add new stuff here..._
+- Fix RuntimeError class, make it inherited from Error ([#983](https://github.com/maplibre/maplibre-style-spec/issues/983))
8
9
## 23.1.0
10
src/expression/runtime_error.ts
@@ -1,10 +1,7 @@
1
-export class RuntimeError {
2
- name: string;
3
- message: string;
-
+export class RuntimeError extends Error {
constructor(message: string) {
- this.name = 'ExpressionEvaluationError';
- this.message = message;
+ super(message);
+ this.name = 'RuntimeError';
}
toJSON() {
0 commit comments