Skip to content

Commit 982175b

Browse files
Update regenerator-transform (#14415)
1 parent 9541778 commit 982175b

File tree

15 files changed

+59
-2
lines changed

15 files changed

+59
-2
lines changed

packages/babel-plugin-transform-regenerator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"main": "./lib/index.js",
1313
"dependencies": {
14-
"regenerator-transform": "^0.14.2"
14+
"regenerator-transform": "^0.15.0"
1515
},
1616
"license": "MIT",
1717
"publishConfig": {
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var _marked = /*#__PURE__*/regeneratorRuntime.mark(gen);
2+
3+
function gen() {
4+
var a;
5+
return regeneratorRuntime.wrap(function gen$(_context) {
6+
while (1) switch (_context.prev = _context.next) {
7+
case 0:
8+
a = () => {
9+
return 1;
10+
};
11+
12+
case 1:
13+
case "end":
14+
return _context.stop();
15+
}
16+
}, _marked);
17+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
function* f() {
2+
class A {
3+
foo() {
4+
return 1;
5+
}
6+
};
7+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
var _marked = /*#__PURE__*/regeneratorRuntime.mark(f);
2+
3+
function f() {
4+
return regeneratorRuntime.wrap(function f$(_context) {
5+
while (1) switch (_context.prev = _context.next) {
6+
case 0:
7+
class A {
8+
foo() {
9+
return 1;
10+
}
11+
12+
}
13+
14+
;
15+
16+
case 2:
17+
case "end":
18+
return _context.stop();
19+
}
20+
}, _marked);
21+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy