Add comment about usage of preventExtensions

This commit is contained in:
Scott Kyle 2015-10-20 00:52:38 -07:00
parent f2c4e7882a
commit 01dc3a85d9

View File

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