Skip to content

Commit e8ef003

Browse files
committed
add nullity check
1 parent 4cb5f3d commit e8ef003

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/program.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,6 +1045,7 @@ export class Program extends DiagnosticEmitter {
10451045
for (let _keys = Map_keys(globalAliases), i = 0, k = _keys.length; i < k; ++i) {
10461046
let alias = unchecked(_keys[i]);
10471047
let name = changetype<string>(globalAliases.get(alias))!
1048+
assert(name != null);
10481049
if (!name.length) continue; // explicitly disabled
10491050
let firstChar = name.charCodeAt(0);
10501051
if (firstChar >= CharCode._0 && firstChar <= CharCode._9) {

0 commit comments

Comments
 (0)