Skip to content

Commit

Permalink
test(transformer): add test for arrow function transform
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Sep 20, 2024
1 parent 6757c58 commit 91dea61
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/transform_conformance/snapshots/oxc.snap.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
commit: 3bcfee23

Passed: 48/57
Passed: 49/58

# All Passed:
* babel-plugin-transform-nullish-coalescing-operator
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
function outer() {
let f = () => {
{
let t = this;
}
};

let f2 = () => {
if (x) {
if (y) {
return this;
}
}
};
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function outer() {
var _this = this;

let f = function() {
{
let t = _this;
}
};

let f2 = function() {
if (x) {
if (y) {
return _this;
}
}
};
}

0 comments on commit 91dea61

Please sign in to comment.