mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(cli): do not throw on empty typescript files (#8143)
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
This commit is contained in:
parent
30f3b831d3
commit
5af1dcfe29
3 changed files with 9 additions and 1 deletions
|
@ -374,7 +374,10 @@ delete Object.prototype.__proto__;
|
|||
"op_load",
|
||||
{ specifier },
|
||||
);
|
||||
assert(data, `"data" is unexpectedly null for "${specifier}".`);
|
||||
assert(
|
||||
data != null,
|
||||
`"data" is unexpectedly null for "${specifier}".`,
|
||||
);
|
||||
sourceFile = ts.createSourceFile(
|
||||
specifier,
|
||||
data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue