wallet-core/node_modules/vm-browserify/example/run/entry.js

7 lines
126 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
var vm = require('vm');
$(function () {
var res = vm.runInNewContext('a + 5', { a : 100 });
$('#res').text(res);
});