From 5fb5ef70ccb98b8ded457c343dda2b1d5bb8cf4f Mon Sep 17 00:00:00 2001 From: Erik Demaine Date: Tue, 25 Jan 2022 12:57:54 -0500 Subject: [PATCH] Doc test build --- docs/v2/test.html | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/docs/v2/test.html b/docs/v2/test.html index d09b1d8e74..d2c0b43d7a 100644 --- a/docs/v2/test.html +++ b/docs/v2/test.html @@ -30853,6 +30853,42 @@

Another heading

eq 2, a.b.d eq 3, a.e +test "#5368: continuing object and array literals", -> + { a + b: { c } + } = {a: 1, b: {c: 2}} + eq a, 1 + eq c, 2 + + [d + e: f + ] = [3, {e: 4}] + eq d, 3 + eq f, 4 + A = + [d + e: f + ] + eq A[0], 3 + eq A[1].e, 4 + + for obj in [ + {a: a + c: c + } + {a: a + c + } + {a + c: c + } + {a + c + } + ] + eq obj.a, 1 + eq obj.c, 2 +