paulmillr/es6-shim — pull request #4 by rwldrn (2011-12-25 02:03:17+00:00)
Title: Fixes #2. Update to match actual proposed semantics: Array.from() and Array.of()

Updates tests, here is output:

```
./node_modules/mocha/bin/mocha --reporter spec

Array
Array.of()
✓ should create correct array from iterable
✓ should handle empty iterables correctly
Array.from()
✓ should create correct array from iterable
✓ should handle empty iterables correctly

Map
✓ should exist in global namespace
✓ should return true on values that set has
✓ should return true on values that set has not
✓ should delete props

Math
Math.sign()
✓ should be 1 on positive values
✓ should be -1 on negative values
✓ should be 0 on 0
✓ should be NaN on NaN

Number
Number.isInteger
✓ should be truthy on integers
✓ should not be truthy on non-integers
Number.isNaN
◦ should be truthy on NaN: [Function]
✓ should be truthy on NaN
✓ should be falsy on everything else
Number.toInteger
✓
✓

Object
Object.is
✓ should compare regular objects correctly
✓ should compare 0 and -0 correctly
✓ should compare NaNs correctly
#getOwnPropertyDescriptors
✓
#getPropertyDescriptor
✓
#getPropertyNames
✓

Set
✓ should exist in global namespace
✓ should return true on values that set has
✓ should return true on values that set has not
✓ should delete props

String
#repeat
✓ should work
#startsWith
✓ should be truthy on correct results
✓ should be falsy on incorrect results
#endsWith
✓ should be truthy on correct results
✓ should be falsy on incorrect results
#contains
✓ should be truthy on correct results
✓ should be falsy on incorrect results
#toArray
✓ should be truthy on correct results
✓ should be falsy on incorrect results

✔ 37 tests complete (83ms)

```