Sha256: 006848d8644a1416f9678ccbb540f0b259609110686f250adb86747b2ec8e4ec

Contents?: true

Size: 185 Bytes

Versions: 13

Compression:

Stored size: 185 Bytes

Contents

var vm = require('vm');

window.addEventListener('load', function () {
    var res = vm.runInNewContext('a + 5', { a : 100 });
    document.querySelector('#res').textContent = res;
});

Version data entries

13 entries across 12 versions & 6 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/vm-browserify/example/run/entry.js
tang-0.2.1 spec/tang_app/node_modules/vm-browserify/example/run/entry.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/vm-browserify/example/run/entry.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/vm-browserify/example/run/entry.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/vm-browserify/example/run/entry.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/vm-browserify/example/run/entry.js
tang-0.2.0 spec/tang_app/node_modules/vm-browserify/example/run/entry.js
tang-0.1.0 spec/tang_app/node_modules/vm-browserify/example/run/entry.js
tang-0.0.9 spec/tang_app/node_modules/vm-browserify/example/run/entry.js
enju_library-0.3.8 spec/dummy/node_modules/vm-browserify/example/run/entry.js
ilog-0.4.1 node_modules/vm-browserify/example/run/entry.js
ilog-0.4.0 node_modules/vm-browserify/example/run/entry.js
ilog-0.3.3 node_modules/vm-browserify/example/run/entry.js