Skip to content

Commit

Permalink
Add test for update expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Nov 8, 2022
1 parent f5263a4 commit c36790a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
@@ -0,0 +1,13 @@
maybeCallLater(function f() {
x++;
++x;
x.p++;
++x.p;
});

x++;
++x;
x.p++;
++x.p;

let x;
@@ -0,0 +1,15 @@
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;
x = void 0;
void 0;

0 comments on commit c36790a

Please sign in to comment.