From 8d6e4db6addcd967ef0c8766c2d012e0610c1107 Mon Sep 17 00:00:00 2001
From: overlookmotel <theoverlookmotel@gmail.com>
Date: Sat, 16 Nov 2024 17:41:51 +0000
Subject: [PATCH] tests(transformer/async-to-generator): failing test for
 nested supers

---
 .../snapshots/oxc.snap.md                     |  8 +++++--
 .../test/fixtures/super/nested/input.js       | 15 +++++++++++++
 .../test/fixtures/super/nested/output.js      | 22 +++++++++++++++++++
 3 files changed, 43 insertions(+), 2 deletions(-)
 create mode 100644 tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/input.js
 create mode 100644 tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/output.js

diff --git a/tasks/transform_conformance/snapshots/oxc.snap.md b/tasks/transform_conformance/snapshots/oxc.snap.md
index 1cc7879ddaed13..2fd6e99fb9d7d2 100644
--- a/tasks/transform_conformance/snapshots/oxc.snap.md
+++ b/tasks/transform_conformance/snapshots/oxc.snap.md
@@ -1,13 +1,12 @@
 commit: d20b314c
 
-Passed: 85/95
+Passed: 85/96
 
 # All Passed:
 * babel-plugin-transform-class-static-block
 * babel-plugin-transform-nullish-coalescing-operator
 * babel-plugin-transform-optional-catch-binding
 * babel-plugin-transform-async-generator-functions
-* babel-plugin-transform-async-to-generator
 * babel-plugin-transform-exponentiation-operator
 * babel-plugin-transform-arrow-functions
 * babel-preset-typescript
@@ -15,6 +14,11 @@ Passed: 85/95
 * regexp
 
 
+# babel-plugin-transform-async-to-generator (14/15)
+* super/nested/input.js
+x Output mismatch
+
+
 # babel-plugin-transform-typescript (2/9)
 * class-property-definition/input.ts
 Unresolved references mismatch:
diff --git a/tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/input.js b/tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/input.js
new file mode 100644
index 00000000000000..a1a511671b7b95
--- /dev/null
+++ b/tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/input.js
@@ -0,0 +1,15 @@
+const outer = {
+  value: 0,
+  async method() {
+    () => super.value;
+
+    const inner = {
+      value: 0,
+      async method() {
+        () => super.value;
+      }
+    };
+
+    () => super.value;
+  }
+};
diff --git a/tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/output.js b/tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/output.js
new file mode 100644
index 00000000000000..16c7b41c9fa559
--- /dev/null
+++ b/tasks/transform_conformance/tests/babel-plugin-transform-async-to-generator/test/fixtures/super/nested/output.js
@@ -0,0 +1,22 @@
+const outer = {
+  value: 0,
+  method() {
+    var _superprop_getValue = () => super.value;
+
+    return babelHelpers.asyncToGenerator(function* () {
+      () => _superprop_getValue();
+
+      const inner = {
+        value: 0,
+        method() {
+          var _superprop_getValue2 = () => super.value;
+          return babelHelpers.asyncToGenerator(function* () {
+            () => _superprop_getValue2();
+          })();
+        }
+      };
+
+      () => _superprop_getValue();
+    })();
+  }
+};