Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions tasks/transform_conformance/snapshots/oxc.snap.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
commit: 578ac4df

Passed: 138/226
Passed: 138/227

# All Passed:
* babel-plugin-transform-class-static-block
Expand Down Expand Up @@ -320,7 +320,7 @@ x Output mismatch
x Output mismatch


# babel-plugin-proposal-explicit-resource-management (0/2)
# babel-plugin-proposal-explicit-resource-management (0/3)
* export-class-name/input.js
x Output mismatch

Expand All @@ -335,6 +335,20 @@ Scope parent mismatch:
after transform: ScopeId(3): Some(ScopeId(1))
rebuilt : ScopeId(4): Some(ScopeId(3))

* function-with-scopes-in-params/input.js
Scope children mismatch:
after transform: ScopeId(1): [ScopeId(5), ScopeId(6), ScopeId(8)]
rebuilt : ScopeId(1): [ScopeId(2), ScopeId(3), ScopeId(4), ScopeId(6), ScopeId(8)]
Scope parent mismatch:
after transform: ScopeId(2): Some(ScopeId(5))
rebuilt : ScopeId(2): Some(ScopeId(1))
Scope parent mismatch:
after transform: ScopeId(3): Some(ScopeId(5))
rebuilt : ScopeId(3): Some(ScopeId(1))
Scope children mismatch:
after transform: ScopeId(5): [ScopeId(2), ScopeId(3), ScopeId(4)]
rebuilt : ScopeId(4): [ScopeId(5)]


# legacy-decorators (2/66)
* oxc/metadata/bound-type-reference/input.ts
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// The arrow functions in this test case are to make sure that scopes are re-parented correctly
function f(a = () => {}, b = () => {}) {
using x = a(), y = b();
doSomethingWith(x, y, () => {});
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"plugins": ["proposal-explicit-resource-management"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
function f(a = () => {}, b = () => {}) {
try {
var _usingCtx = babelHelpers.usingCtx();
const x = _usingCtx.u(a()), y = _usingCtx.u(b());
doSomethingWith(x, y, () => {});
} catch (_) {
_usingCtx.e = _;
} finally {
_usingCtx.d();
}
}
Loading