mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* move core transformation cases to plugins * move tests to traverse/regression
24 lines
367 B
JavaScript
24 lines
367 B
JavaScript
class Bar {
|
|
test() {
|
|
// pass
|
|
(() => {
|
|
expect(this.constructor).toBe(Bar);
|
|
})();
|
|
|
|
// pass
|
|
(() => {
|
|
expect(this.constructor).toBe(Bar);
|
|
}).call(this);
|
|
|
|
(async () => {
|
|
expect(this.constructor).toBe(Bar);
|
|
})();
|
|
|
|
(async () => {
|
|
expect(this.constructor).toBe(Bar);
|
|
}).call(this);
|
|
}
|
|
}
|
|
|
|
(new Bar()).test();
|