This is a partial revert of #11370, updating the tests to match the [new consensus](https://github.com/babel/proposals/issues/66#issuecomment-636984546).
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");
|