fix(es): Remove wrong debug assertion (#4445)

This commit is contained in:
Donny/강동윤 2022-04-26 23:16:38 +09:00 committed by GitHub
parent 342869408b
commit 962cf4a08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
857 changed files with 42 additions and 7 deletions

View File

@ -2,10 +2,3 @@
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged
# Remove empty directories
if command -v fd &> /dev/null
then
fd -H '^\.DS_Store$' -tf -X rm || true
fd -te -td -X rmdir || true
fi

View File

@ -4,4 +4,10 @@
# yarn run cspell "**/src/**/*.rs"
cargo fmt --all -- --check
# Remove empty directories
if command -v fd &> /dev/null
then
fd -H '^\.DS_Store$' -tf -X rm || true
fd -te -td -X rmdir || true
fi

View File

@ -472,6 +472,7 @@ impl Compiler {
&& !src_map_buf.is_empty()
&& src_map_buf.iter().all(|(bp, _)| *bp == BytePos(0))
&& src.lines().count() >= 3
&& option_env!("SWC_DEBUG") == Some("1")
{
panic!("The module contains only dummy spans\n{}", src);
}

Some files were not shown because too many files have changed in this diff Show More