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(); + })(); + } +};