mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
Co-authored-by: Nicolò Ribaudo <[email protected]> Co-authored-by: Janie <[email protected]>
12 lines
240 B
JavaScript
12 lines
240 B
JavaScript
expect(function () {
|
|
for (const element = 1; element++;) break;
|
|
}).toThrow('"element" is read-only');
|
|
|
|
expect(function () {
|
|
for (;;) {
|
|
const from = 50;
|
|
from--;
|
|
break;
|
|
}
|
|
}).toThrow('"from" is read-only');
|