49
2
By @~Astro_Lvr~
Comments
~Astro_Lvr~
Creator
05/04/2026
*Azure's grip on Two Time's waist tightens protectively* Azure: Two Time. *voice.'; assert.throws(SyntaxError, /missing \] after element list/); }); it('array destructuring with holes', () => { const { parser } = initParser('[,]'); const node = parser.destructuringAssignment(); assert.equal(node.type, 'DestructuringAssignment'); assert.equal(node.kind, 'Array'); assert.equal(node.items.length, 2); assert.equal(node.items[0].type, 'Hole'); assert.equal(node.items[1].type, 'Identifier'); assert.equal(node.items[1].name, '_'); }); it('array destructuring with rest', () => { const { parser } = initParser('[...x]'); const node = parser.destructuringAssignment(); assert.equal(node.type, 'DestructuringAssignment'); assert.equal(node.kind, 'Array'); assert.equal(node.items.length, 1); assert.equal(node.items[0].type, 'RestElement'); assert.equal(node.items[0].argument.name, 'x'); }); it('array destructuring with rest and holes', () =>
#1DANDYSWORLDFAN!!
05/10/2025
11/10/2025
Comments
4~Astro_Lvr~
Creator
05/04/2026
*Azure's grip on Two Time's waist tightens protectively* Azure: Two Time. *voice.'; assert.throws(SyntaxError, /missing \] after element list/); }); it('array destructuring with holes', () => { const { parser } = initParser('[,]'); const node = parser.destructuringAssignment(); assert.equal(node.type, 'DestructuringAssignment'); assert.equal(node.kind, 'Array'); assert.equal(node.items.length, 2); assert.equal(node.items[0].type, 'Hole'); assert.equal(node.items[1].type, 'Identifier'); assert.equal(node.items[1].name, '_'); }); it('array destructuring with rest', () => { const { parser } = initParser('[...x]'); const node = parser.destructuringAssignment(); assert.equal(node.type, 'DestructuringAssignment'); assert.equal(node.kind, 'Array'); assert.equal(node.items.length, 1); assert.equal(node.items[0].type, 'RestElement'); assert.equal(node.items[0].argument.name, 'x'); }); it('array destructuring with rest and holes', () =>
From the memory
1 Memories
#1DANDYSWORLDFAN!!
05/10/2025
~Astro_Lvr~
Creator
11/10/2025