Skip to content

Commit 7d65a8d

Browse files
committed
Change assert to a ! to allow for ""
1 parent 13340ed commit 7d65a8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/program.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,9 @@ export class Program extends DiagnosticEmitter {
10441044
// TODO: for (let [alias, name] of globalAliases) {
10451045
for (let _keys = Map_keys(globalAliases), i = 0, k = _keys.length; i < k; ++i) {
10461046
let alias = unchecked(_keys[i]);
1047-
let name = assert(globalAliases.get(alias));
1047+
let name = globalAliases.get(alias);
1048+
assert(isString(name));
1049+
name = name!
10481050
if (!name.length) continue; // explicitly disabled
10491051
let firstChar = name.charCodeAt(0);
10501052
if (firstChar >= CharCode._0 && firstChar <= CharCode._9) {

0 commit comments

Comments
 (0)