mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 02:06:08 +03:00
chore: Remove repetitive words (#8741)
Signed-off-by: one230six <723682061@qq.com>
This commit is contained in:
parent
1ec92dff2f
commit
bfb0c6e534
@ -26,7 +26,7 @@ unitTest({
|
||||
);
|
||||
```
|
||||
|
||||
`unitTest` is is a wrapper function that enhances `Deno.test()` API in several
|
||||
`unitTest` is a wrapper function that enhances `Deno.test()` API in several
|
||||
ways:
|
||||
|
||||
- ability to conditionally skip tests using `UnitTestOptions.skip`
|
||||
|
@ -270,7 +270,7 @@ where
|
||||
// 3. Per-unit renaming
|
||||
// 4. Top level renaming
|
||||
//
|
||||
// This is because the the top level map may contain a mapping which conflicts
|
||||
// This is because the top level map may contain a mapping which conflicts
|
||||
// with a map from one of the children.
|
||||
//
|
||||
// See https://github.com/swc-project/swc/pull/7615
|
||||
|
@ -385,7 +385,7 @@ fn test_remove_useless_ops2() {
|
||||
test("Math.random(f() + g())", "f(),g();");
|
||||
test("Math.random(f(),g(),h())", "f(),g(),h();");
|
||||
|
||||
// Calls to functions with unknown side-effects are are left.
|
||||
// Calls to functions with unknown side-effects are left.
|
||||
test_same("f();");
|
||||
test_same("(function () { f(); })();");
|
||||
|
||||
|
@ -50,7 +50,7 @@ impl Babelify for ClassDecl {
|
||||
let is_abstract = self.class.is_abstract;
|
||||
// NOTE: The body field needs a bit of special handling because babel
|
||||
// represents the body as a node, whereas swc represents it as a vector of
|
||||
// statements. This means that swc does not have a span corresponding the the
|
||||
// statements. This means that swc does not have a span corresponding the
|
||||
// class body base node for babel. To solve this, we generate a new span
|
||||
// starting from the end of the identifier to the end of the body.
|
||||
// For example,
|
||||
|
Loading…
Reference in New Issue
Block a user