Giter Site home page Giter Site logo

Comments (5)

newsomc avatar newsomc commented on July 18, 2024

I'm seeing the same issue:

This test fails in CoffeeScript REPL.

coffee> js_arr = [1, 2, 3]
[ 1, 2, 3 ]
coffee> h = mori.js_to_clj(js_arr)
[ 1, 2, 3 ] # This should return a vector, not an array.

from mori.

newsomc avatar newsomc commented on July 18, 2024

The example I noted above works in CoffeeScript version 1.7.1.

from mori.

grncdr avatar grncdr commented on July 18, 2024

That's good to know. Thanks @newsomc

from mori.

vickychijwani avatar vickychijwani commented on July 18, 2024

I'm not sure what inferences to draw here, but perhaps this will shed some light on the issue:

> var mori = require('mori'), vm = require('vm');
undefined
> var ctx = vm.createContext({ mori: mori })
undefined
> vm.runInThisContext('mori.set([1,2,3,4])');
#{1 2 3 4}
> vm.runInNewContext('mori.set([1,2,3,4])', ctx);
Error: 1,2,3,4is not ISeqable
    at Error (<anonymous>)
    at C (/path/to/mori/mori.js:27:196)
    at Object.set (/path/to/mori/mori.js:312:111)
    at evalmachine.<anonymous>:1:6
    at repl:1:4
    at REPLServer.self.eval (repl.js:110:21)
    at repl.js:249:20
    at REPLServer.self.eval (repl.js:122:7)
    at Interface.<anonymous> (repl.js:239:12)
    at Interface.EventEmitter.emit (events.js:95:17)
> vm.runInContext('mori.set([1,2,3,4])', ctx);
Error: 1,2,3,4is not ISeqable
    at Error (<anonymous>)
    at C (/path/to/mori/mori.js:27:196)
    at Object.set (/path/to/mori/mori.js:312:111)
    at evalmachine.<anonymous>:1:6
    at repl:1:4
    at REPLServer.self.eval (repl.js:110:21)
    at repl.js:249:20
    at REPLServer.self.eval (repl.js:122:7)
    at Interface.<anonymous> (repl.js:239:12)
    at Interface.EventEmitter.emit (events.js:95:17)

from mori.

swannodette avatar swannodette commented on July 18, 2024

Not going to look into this one.

from mori.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.