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