mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
fix(es): Remove wrong debug assertion (#4445)
This commit is contained in:
parent
342869408b
commit
962cf4a08c
@ -2,10 +2,3 @@
|
|||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
yarn lint-staged
|
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
|
|
||||||
|
@ -4,4 +4,10 @@
|
|||||||
# yarn run cspell "**/src/**/*.rs"
|
# yarn run cspell "**/src/**/*.rs"
|
||||||
cargo fmt --all -- --check
|
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
|
||||||
|
|
||||||
|
@ -472,6 +472,7 @@ impl Compiler {
|
|||||||
&& !src_map_buf.is_empty()
|
&& !src_map_buf.is_empty()
|
||||||
&& src_map_buf.iter().all(|(bp, _)| *bp == BytePos(0))
|
&& src_map_buf.iter().all(|(bp, _)| *bp == BytePos(0))
|
||||||
&& src.lines().count() >= 3
|
&& src.lines().count() >= 3
|
||||||
|
&& option_env!("SWC_DEBUG") == Some("1")
|
||||||
{
|
{
|
||||||
panic!("The module contains only dummy spans\n{}", src);
|
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
Loading…
Reference in New Issue
Block a user