Skip to content

Instantly share code, notes, and snippets.

@egasimus
Created March 11, 2015 08:42
Show Gist options
  • Save egasimus/926fb5a72d82c4c99552 to your computer and use it in GitHub Desktop.
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
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');
Out of sandbox:
[ 1, 2, { '3': 4 } ]
[1 2 {"3" 4}]
Inside of sandbox:
[ 1, 2, { '3': 4 } ]
[ 1, 2, { '3': 4 } ]
{
"main": "index.js",
"dependencies": {
"mori": "^0.3.2",
"sandboxed-module": "^2.0.0"
}
}
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