mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
12 lines
132 B
JavaScript
12 lines
132 B
JavaScript
expect(function() {
|
|
const c = 17;
|
|
let a = 0;
|
|
|
|
function f() {
|
|
return ++c+--a;
|
|
}
|
|
|
|
f();
|
|
|
|
}).toThrow('"c" is read-only');
|