mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
10 lines
148 B
JavaScript
10 lines
148 B
JavaScript
var a, b = true, c;
|
|
|
|
a ||= () => {};
|
|
b &&= () => {};
|
|
c ??= () => {};
|
|
|
|
expect(a.name).toBe("a");
|
|
expect(b.name).toBe("b");
|
|
expect(c.name).toBe("c");
|