mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
13 lines
195 B
JavaScript
13 lines
195 B
JavaScript
function* f([]) {}
|
|
|
|
expect(() => f()).toThrow();
|
|
|
|
let called = false;
|
|
let run = false;
|
|
function* g(x = (called = true)) {
|
|
run = true;
|
|
}
|
|
|
|
g();
|
|
expect(called).toBe(true);
|
|
expect(run).toBe(false); |