diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-12-12 10:26:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-12 10:26:27 +0000 |
commit | 7d88e48296f2b88c646335b2868ca9e48b08a3d2 (patch) | |
tree | 32a2fa31383aaa4c4dd7d0d7a45898290b21e79a /cli/tsc/99_main_compiler.js | |
parent | 49a6daaa8386f321d23f57fb5f3ae365abf82a80 (diff) |
perf(lsp): use null types instead of stub modules (#21541)
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index d795e542b..e1b7b462c 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -528,7 +528,7 @@ delete Object.prototype.__proto__; if (logDebug) { debug(`host.readFile("${specifier}")`); } - return ops.op_load(specifier).data; + return ops.op_load(specifier)?.data; }, getCancellationToken() { // createLanguageService will call this immediately and cache it |