Skip to content

Commit c199360

Browse files
committed
make stringifying consistent
1 parent 96eacd8 commit c199360

File tree

10 files changed

+533
-568
lines changed

10 files changed

+533
-568
lines changed

turbopack/crates/turbopack-ecmascript/src/analyzer/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,7 +1994,7 @@ impl JsValue {
19941994
}
19951995
JsValue::Effectful(_, operand) => {
19961996
format!(
1997-
"side-effectful({})",
1997+
"effectful({})",
19981998
operand.explain_internal_inner(hints, indent_depth, depth, unknown_depth)
19991999
)
20002000
}

turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/logical/graph-explained.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ d (const after eval) = !(x)
1212

1313
e (const after eval) = !(!(x))
1414

15-
n (const after eval) = ((side-effectful(r) && t["__esModule"]) ? t : {"default": t})
15+
n (const after eval) = ((effectful(r) && t["__esModule"]) ? t : {"default": t})
1616

1717
r (const after eval) = {}
1818

turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/logical/resolved-effects.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@
2626

2727
13 -> 14 free var = FreeVar(global)
2828

29-
0 -> 15 conditional = side-effectful({})
29+
0 -> 15 conditional = effectful({})

turbopack/crates/turbopack-ecmascript/tests/analyzer/graph/logical/resolved-explained.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ d = false
1818

1919
e = true
2020

21-
n = ((side-effectful({}) | ???*0* | undefined | ???*2*) ? (???*3* | {}) : {"default": (???*4* | {})})
21+
n = ((effectful({}) | ???*0* | undefined | ???*2*) ? (???*3* | {}) : {"default": (???*4* | {})})
2222
- *0* ???*1*["__esModule"]
2323
⚠️ unknown object
2424
- *1* t

0 commit comments

Comments
 (0)