Scott Kyle
8c66bab8aa
Make collection iterators actually iterable
...
The ES6 spec calls for this so these iterators are usable in for-of loops, with spread operators, etc.
2016-03-20 11:51:16 -07:00
Scott Kyle
b5ce02c0ce
Make List and Results inherit from Collection
...
This will allow for easier type checking, documentation, etc.
2016-03-20 11:51:16 -07:00
Scott Kyle
9ba477762a
Update splice tests to test added behavior
2016-03-17 14:53:42 -07:00
Scott Kyle
37b2c35169
Add Symbol.iterator method to List and Results
...
Resolves #235
2016-03-02 23:00:53 -08:00
Scott Kyle
1cba02c34d
Fix broken iterator methods on Android
...
Turns out the JSC included with React Native on Android includes a buggy implementation of ArrayIterator that is missing an exposed next() method, so we implement it ourselves instead.
2016-03-02 22:57:36 -08:00
Scott Kyle
72bf66e57e
Check for some iterator methods before testing them
...
Some JS engines (like Chrome) are skipping over values() due to a web compatibility reason for right now.
2016-03-01 00:14:18 -08:00
Scott Kyle
4ea2e729b4
Support many Array methods on List and Results
...
Resolves #18
2016-02-29 03:24:58 -08:00
Scott Kyle
236d0a5eed
Ensure List and Results constructors throw exception
...
This was already done from native code, but needed to happen for the browser shim and be tested.
2016-02-29 03:24:58 -08:00
Scott Kyle
44a29d8dd4
Expose List and Results constructors into JS
2016-02-29 03:24:58 -08:00
Scott Kyle
a5ec799a7c
Copy whole lib module into JS test bundle
...
This meant we needed to rename tests/lib to tests/js so they folder names would not conflict.
2016-02-29 03:24:58 -08:00