Skip to content

Commit

Permalink
add es2015 test
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Feb 7, 2022
1 parent e31ee57 commit d328835
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
let receivedName;
function decFactory(name) { receivedName = name; return x => x }
class B {
static m() {
class C {
@decFactory(this.name) p;
}
}
}

B.m();
expect(receivedName).toBe("B");

0 comments on commit d328835

Please sign in to comment.