1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 01:15:08 +00:00

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
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);