mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Remove assertion for empty modules (#1450)
This commit is contained in:
parent
4f62a56f90
commit
6be1164d89
2 changed files with 19 additions and 2 deletions
|
@ -244,7 +244,6 @@ export class Compiler
|
|||
}
|
||||
assert(moduleId != null, "No module ID.");
|
||||
assert(fileName != null, "No file name.");
|
||||
assert(sourceCode ? sourceCode.length > 0 : false, "No source code.");
|
||||
assert(
|
||||
mediaType !== MediaType.Unknown,
|
||||
`Unknown media type for: "${moduleSpecifier}" from "${containingFile}".`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue