Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-09-27 01:22:13 +03:00
parent d88179a0b3
commit f32a44ac1a
2 changed files with 4 additions and 6 deletions

View File

@ -62,7 +62,7 @@ var MIN_TEXT_LENGTH = 100
// -> Set([key, ..])
//
// This is different to Object.keys(..) in that it gets both enumerable
// and non-enumerable keys as well as keys defined in prototypes...
// and non-enumerable keys in the whole prototype chain...
var getAllKeys = function(obj){
var res = new Set()
while(obj.__proto__ || obj === obj.__proto__){

View File

@ -96,7 +96,7 @@ module.OBJECT_CHANGE = AND(
AT('type', 'Object'),
AT('items', L(OBJECT_ITEM)),
// XXX
AT('item_order', undefined))
OPT('item_order'))
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -108,15 +108,13 @@ module.ARRAY_ITEM = OR(
var ARRAY_ITEMS =
module.ARRAY_ITEMS = AND(
AT('length', OR(
[N, N],
undefined)),
AT('items',
L(OR(
ARRAY_ITEM,
OBJECT_ITEM))),
OPT('length', [N, N]),
// XXX
AT('item_order', undefined))
OPT('item_order'))
var ARRAY_CHANGE =
module.ARRAY_CHANGE = AND(