Created
March 11, 2015 08:42
-
-
Save egasimus/926fb5a72d82c4c99552 to your computer and use it in GitHub Desktop.
mori#140 "toClj doesn't work?" https://github.com/swannodette/mori/issues/140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log("Out of sandbox:"); | |
var foo = [1, 2, {3: 4}]; | |
console.log(foo); | |
console.log(require('mori').toClj(foo)); | |
var box = require('sandboxed-module').require('./sandbox.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Out of sandbox: | |
[ 1, 2, { '3': 4 } ] | |
[1 2 {"3" 4}] | |
Inside of sandbox: | |
[ 1, 2, { '3': 4 } ] | |
[ 1, 2, { '3': 4 } ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"main": "index.js", | |
"dependencies": { | |
"mori": "^0.3.2", | |
"sandboxed-module": "^2.0.0" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('\nInside of sandbox:'); | |
var foo = [1, 2, {3: 4}]; | |
console.log(foo); | |
console.log(require('mori').toClj(foo)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment