j icon indicating copy to clipboard operation
j copied to clipboard

Make __rowNum__ non-enumerable

Open SystemParadox opened this issue 12 years ago • 2 comments

Currently all rows returned by to_json have a __rowNum__ property on their prototype. However, this property is enumerable, which causes it fail chai's deepEqual test.

If the property was non-enumerable this would make life much easier.

This affects both js-xls and js-xlsx. It does also affect CSV parsing with j, but did not find any __rowNum__ references in js-harb so I expect this is to due with the shared json output.

Thanks.

SystemParadox avatar Oct 30 '14 16:10 SystemParadox

+1

schaitanya avatar Nov 04 '14 18:11 schaitanya

This is managed in the xlsx dependency now

SheetJSDev avatar Dec 05 '17 07:12 SheetJSDev