mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-26 10:25:14 +00:00
7 lines
185 B
JavaScript
7 lines
185 B
JavaScript
|
var vm = require('vm');
|
||
|
|
||
|
window.addEventListener('load', function () {
|
||
|
var res = vm.runInNewContext('a + 5', { a : 100 });
|
||
|
document.querySelector('#res').textContent = res;
|
||
|
});
|