mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 08:02:52 +00:00
LibJS: Parse object expressions
This commit is contained in:
parent
c64b5e73f5
commit
bc002f807a
Notes:
sideshowbarker
2024-07-19 08:12:30 +09:00
Author: https://github.com/0xtechnobabble
Commit: bc002f807a
Pull-request: https://github.com/SerenityOS/serenity/pull/1494
7 changed files with 48 additions and 4 deletions
7
Base/home/anon/js/object-expression.js
Normal file
7
Base/home/anon/js/object-expression.js
Normal 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);
|
Loading…
Add table
Add a link
Reference in a new issue