mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-12 22:50:54 +03:00
10 lines
290 B
JavaScript
10 lines
290 B
JavaScript
#!/usr/bin/env node
|
|
const fs = require('fs');
|
|
const vm = require('vm');
|
|
const snapshotScriptPath = process.argv[2];
|
|
const snapshotScript = fs.readFileSync(snapshotScriptPath, 'utf8');
|
|
vm.runInNewContext(snapshotScript, undefined, {
|
|
filename: snapshotScriptPath,
|
|
displayErrors: true
|
|
});
|