Remove assertion for empty modules (#1450)

This commit is contained in:
Satya Rohith 2019-01-04 08:39:07 +05:30 committed by Ryan Dahl
parent 4f62a56f90
commit 6be1164d89
2 changed files with 19 additions and 2 deletions

View file

@ -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}".`