diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/src/common/internal/util.ts')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/src/common/internal/util.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/src/common/internal/util.ts b/dom/webgpu/tests/cts/checkout/src/common/internal/util.ts new file mode 100644 index 0000000000..37a5db3568 --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/src/common/internal/util.ts @@ -0,0 +1,10 @@ +/** + * Error without a stack, which can be used to fatally exit from `tool/` scripts with a + * user-friendly message (and no confusing stack). + */ +export class StacklessError extends Error { + constructor(message: string) { + super(message); + this.stack = undefined; + } +} |