mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-14 15:13:07 +00:00
LibJS: Support reading/writing elements in an Array via Object get/put
I'm not completely thrilled about Object::get() and Object::put() doing special-case stuff for arrays, and we should probably come up with a better abstraction for it. But at least it works for now, which is really nice. :^)
This commit is contained in:
parent
a3d2e07446
commit
8f7d4f67a4
Notes:
sideshowbarker
2024-07-19 08:12:40 +09:00
Author: https://github.com/awesomekling
Commit: 8f7d4f67a4
3 changed files with 23 additions and 3 deletions
|
@ -1,8 +1,7 @@
|
|||
var a = [1, 2, 3];
|
||||
console.log(a);
|
||||
|
||||
/*
|
||||
a[1] = 5;
|
||||
|
||||
for (var i = 0; i < 3; ++i) {
|
||||
console.log(a[i]);
|
||||
}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue