ClojureScript

The array? predicate appears to be incomplete

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Probably all?

Description

The following command with fs the filesystem module from node still returns a js array:
js->clj (.readdirSync fs ".")))
A short irc discussion with dnolen revealed that the array? predicate is probably to blame. instanceof Array returns false for the result, while result.constructor == Array.

  1. cljs_644_v3.patch
    05/Mar/14 6:17 PM
    1 kB
    Travis Vachon
  2. cljs_644_v4.patch
    12/Mar/14 2:25 PM
    2 kB
    Travis Vachon
  3. cljs_664.patch
    05/Mar/14 5:57 PM
    1 kB
    Travis Vachon
  4. cljs_664.patch
    10/Dec/13 9:49 AM
    1 kB
    Travis Vachon
  5. isArray.patch
    09/Dec/13 4:52 PM
    1.0 kB
    Travis Vachon

Activity

Travis Vachon made changes -
Field Original Value New Value
Attachment isArray.patch [ 12521 ]
Travis Vachon made changes -
Attachment cljs_664.patch [ 12524 ]
Travis Vachon made changes -
Attachment cljs_664.patch [ 12857 ]
Travis Vachon made changes -
Attachment cljs_644_v3.patch [ 12858 ]
Travis Vachon made changes -
Attachment cljs_644_v4.patch [ 12871 ]
David Nolen made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
David Nolen made changes -
Status Resolved [ 5 ] Closed [ 6 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: