Move BaseRenderLayer into browser

This commit is contained in:
Daniel Imms
2019-07-14 12:22:11 -07:00
parent cdefb3e7f2
commit 9830a077c1
10 changed files with 80 additions and 85 deletions
+11
View File
@@ -0,0 +1,11 @@
/**
* Copyright (c) 2019 The xterm.js authors. All rights reserved.
* @license MIT
*/
export function throwIfFalsy<T>(value: T | undefined | null): T {
if (!value) {
throw new Error('value must not be falsy');
}
return value;
}