UNPKG

strong-debugger

Version:

DevTools Remote Debugging Protocol provider for Node.js and io.js

11 lines (7 loc) 269 B
'use strict'; var fs = require('fs'); var vm = require('vm'); var sourcePath = require.resolve('../../backend/convert'); var sourceCode = fs.readFileSync(sourcePath, 'utf-8'); sourceCode += '\nconvert;'; module.exports = vm.runInThisContext(sourceCode, sourcePath);