main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
308 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import Node from "./Node.mjs";
|
---|
| 2 | class Error extends Node {
|
---|
| 3 | static type = 'error';
|
---|
| 4 | value;
|
---|
| 5 | isUnexpected;
|
---|
| 6 | constructor({
|
---|
| 7 | value,
|
---|
| 8 | isUnexpected = false,
|
---|
| 9 | ...rest
|
---|
| 10 | } = {}) {
|
---|
| 11 | super({
|
---|
| 12 | ...rest
|
---|
| 13 | });
|
---|
| 14 | this.value = value;
|
---|
| 15 | this.isUnexpected = isUnexpected;
|
---|
| 16 | }
|
---|
| 17 | }
|
---|
| 18 | export default Error; |
---|
Note:
See
TracBrowser
for help on using the repository browser.