parent
02d0b74d37
commit
36d8a13f4d
@ -0,0 +1,7 @@
|
||||
const x = do {
|
||||
try {
|
||||
a();
|
||||
} catch (e) {
|
||||
b();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
var x = function () {
|
||||
try {
|
||||
return a();
|
||||
} catch (e) {
|
||||
return b();
|
||||
}
|
||||
}();
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": ["transform-es2015-block-scoping", "transform-do-expressions"]
|
||||
}
|
||||
@ -33,6 +33,8 @@ export function getCompletionRecords(): Array {
|
||||
paths = addCompletionRecords(this.get("block"), paths);
|
||||
paths = addCompletionRecords(this.get("handler"), paths);
|
||||
paths = addCompletionRecords(this.get("finalizer"), paths);
|
||||
} else if (this.isCatchClause()) {
|
||||
paths = addCompletionRecords(this.get("body"), paths);
|
||||
} else {
|
||||
paths.push(this);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user