aboutsummaryrefslogtreecommitdiff
path: root/integration/snapshots/array-args-with-default-values.debug.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-23 22:01:34 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-09-23 22:01:34 -0700
commit4bb41b95a826892107b7ff3ff610d23d5afa96b6 (patch)
tree439f273d09ae8fa845eaec24c9e436c8fd244be3 /integration/snapshots/array-args-with-default-values.debug.js
parentf78f4854a4e474a08023841f4714f0cd3774126b (diff)
downloadbun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.tar.gz
bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.tar.zst
bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.zip
:camera:
Diffstat (limited to 'integration/snapshots/array-args-with-default-values.debug.js')
-rw-r--r--integration/snapshots/array-args-with-default-values.debug.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/integration/snapshots/array-args-with-default-values.debug.js b/integration/snapshots/array-args-with-default-values.debug.js
new file mode 100644
index 000000000..d44564ff6
--- /dev/null
+++ b/integration/snapshots/array-args-with-default-values.debug.js
@@ -0,0 +1,25 @@
+var lines;
+const data = () => lines.map(([a = null, b = null, c = null, d = null]) => ({
+ a,
+ b,
+ c,
+ d
+}));
+export function test() {
+ let ran = false;
+ lines = [
+ [undefined, undefined, undefined, undefined],
+ [undefined, undefined, undefined, undefined],
+ [undefined, undefined, undefined, undefined],
+ [undefined, undefined, undefined, undefined]
+ ];
+ for (let foo of data()) {
+ console.assert(foo.a === null);
+ console.assert(foo.b === null);
+ console.assert(foo.c === null);
+ console.assert(foo.d === null);
+ ran = true;
+ }
+ console.assert(ran);
+ testDone(import.meta.url);
+}