aboutsummaryrefslogtreecommitdiff
path: root/test/snapshots/optional-chain-with-function.hmr.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/optional-chain-with-function.hmr.js')
-rw-r--r--test/snapshots/optional-chain-with-function.hmr.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/snapshots/optional-chain-with-function.hmr.js b/test/snapshots/optional-chain-with-function.hmr.js
index 5f0489926..3a479ffce 100644
--- a/test/snapshots/optional-chain-with-function.hmr.js
+++ b/test/snapshots/optional-chain-with-function.hmr.js
@@ -12,9 +12,8 @@ var hmr = new FastHMR(2145684817, "optional-chain-with-function.js", FastRefresh
(hmr._load = function() {
function test() {
try {
- const multipleSecondaryValues = undefined;
const ratings = ["123"];
- var bar = multipleSecondaryValues?.map((value) => false);
+ var bar = undefined?.map((value) => false);
bar = bar?.multipleSecondaryValues?.map((value) => false);
bar = bar?.bar?.multipleSecondaryValues?.map((value) => false);
bar = {}?.bar?.multipleSecondaryValues?.map((value) => false);