Update Babel plugin tests (#20053)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-09-14 20:48:16 +08:00
1 parent 475893a105
commit 733f4e9604
57 files changed
+1308 -2872

No files matched your search

@@ -1,10 +1,5 @@
// https://babeljs.io/docs/babel-plugin-proposal-function-sent
/*
`functionSent` ([proposal](https://github.com/tc39/proposal-function.sent))
*/
function* generator() {
console.log("Sent", function.sent);
console.log("Yield", yield);
}
const iterator = generator();
iterator.next(1); // Logs "Sent 1"
iterator.next(2); // Logs "Yield 2"
function* g() { function.sent }