Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(es): Remove wrong debug assertion #4445

Merged
merged 6 commits into from
Apr 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 0 additions & 7 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -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

1 change: 1 addition & 0 deletions crates/swc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Loading