2015-10-01 22:56:47 -07:00
|
|
|
'use strict';
|
|
|
|
|
2015-10-19 12:06:47 -07:00
|
|
|
let types = require('./types');
|
2015-10-07 17:08:19 -07:00
|
|
|
let util = require('./util');
|
2015-10-01 22:56:47 -07:00
|
|
|
|
2015-10-19 12:06:47 -07:00
|
|
|
module.exports = {
|
|
|
|
create,
|
|
|
|
};
|
2015-10-01 22:56:47 -07:00
|
|
|
|
2015-10-19 12:06:47 -07:00
|
|
|
class List {}
|
2015-10-01 22:56:47 -07:00
|
|
|
|
2015-10-19 12:06:47 -07:00
|
|
|
util.createMethods(List.prototype, types.LIST, [
|
2015-10-01 22:56:47 -07:00
|
|
|
'pop',
|
|
|
|
'shift',
|
|
|
|
'push',
|
|
|
|
'unshift',
|
|
|
|
'splice',
|
2015-10-19 12:06:47 -07:00
|
|
|
], true);
|
2015-10-01 22:56:47 -07:00
|
|
|
|
|
|
|
function create(realmId, info) {
|
2015-10-19 15:26:42 -07:00
|
|
|
return util.createList(List.prototype, realmId, info, true);
|
2015-10-01 22:56:47 -07:00
|
|
|
}
|