mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-10 22:36:01 +00:00
Add comment about usage of preventExtensions
This commit is contained in:
parent
f2c4e7882a
commit
01dc3a85d9
@ -21,6 +21,7 @@ function create(realmId, info) {
|
||||
let meta = util.createList(List.prototype, realmId, info, true);
|
||||
let list = Object.create(meta);
|
||||
|
||||
// This will make attempts at assigning to out-of-bounds indices throw an exception.
|
||||
Object.preventExtensions(list);
|
||||
|
||||
return list;
|
||||
|
Loading…
x
Reference in New Issue
Block a user