mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* Add test for `const` with `tdz` * Rewrite block-scoping plugin * Update block-scoping fixtures * Update other fixtures * Fix `let` shadowing variable read in a sibling scope * Update fixtures * Update Babel 8 fixtures * Add minNodeVersion * Fix block scoped vars shadowing globals * Review by JLHwung * minNodeVersion to class fields test
15 lines
354 B
JavaScript
15 lines
354 B
JavaScript
var x = babelHelpers.temporalUndefined;
|
|
maybeCallLater(function f() {
|
|
babelHelpers.temporalRef(x, "x")
|
|
x++;
|
|
babelHelpers.temporalRef(x, "x")
|
|
++x;
|
|
babelHelpers.temporalRef(x, "x").p++;
|
|
++babelHelpers.temporalRef(x, "x").p;
|
|
});
|
|
babelHelpers.tdz("x");
|
|
babelHelpers.tdz("x");
|
|
babelHelpers.tdz("x").p++;
|
|
++babelHelpers.tdz("x").p;
|
|
var x = void 0;
|