Replaced occurence of throw new Error with unreachable where applicable

This commit is contained in:
Naveen Jain 2017-12-13 19:21:45 +05:30
parent b327633ad6
commit 1135674647
12 changed files with 41 additions and 32 deletions

View file

@ -14,7 +14,8 @@
*/
import {
assert, CMapCompressionType, removeNullCharacters, stringToBytes, warn
assert, CMapCompressionType, removeNullCharacters, stringToBytes,
unreachable, warn
} from '../shared/util';
import globalScope from '../shared/global_scope';
@ -527,7 +528,7 @@ class StatTimer {
*/
class DummyStatTimer {
constructor() {
throw new Error('Cannot initialize DummyStatTimer.');
unreachable('Cannot initialize DummyStatTimer.');
}
static reset() {}