LibJS: Parse object expressions

This commit is contained in:
0xtechnobabble 2020-03-21 02:29:00 +02:00 committed by Andreas Kling
parent c64b5e73f5
commit bc002f807a
Notes: sideshowbarker 2024-07-19 08:12:30 +09:00
7 changed files with 48 additions and 4 deletions

View file

@ -0,0 +1,7 @@
const a = 1;
const object = {a, b: 2};
const emptyObject = {};
console.log(object.a);
console.log(object.b);
console.log(emptyObject.foo);