mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
11 lines
190 B
JavaScript
11 lines
190 B
JavaScript
const effects = [];
|
|
let x;
|
|
|
|
if (do { effects.push(0); true })
|
|
x = do { effects.push(1); 1 };
|
|
else
|
|
x = do { effects.push(2); 2 };
|
|
|
|
expect(effects).toEqual([0, 1]);
|
|
expect(x).toEqual(1);
|