@0x/utils
: Add toStringTag
symbol to RevertError
This commit is contained in:
parent
42f7b7cc19
commit
3a49369e68
@ -25,6 +25,10 @@
|
||||
{
|
||||
"note": "Add `Error` -> `RevertError` functions",
|
||||
"pr": 1819
|
||||
},
|
||||
{
|
||||
"note": "Add `toStringTag` symbol to `RevertError`",
|
||||
"pr": "TODO"
|
||||
}
|
||||
],
|
||||
"timestamp": 1563006338
|
||||
|
@ -204,6 +204,10 @@ export abstract class RevertError extends Error {
|
||||
return [];
|
||||
}
|
||||
|
||||
get [Symbol.toStringTag](): string {
|
||||
return this.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares this instance with another.
|
||||
* Fails if instances are not of the same type.
|
||||
|
Loading…
x
Reference in New Issue
Block a user