mirror of
https://github.com/nodejs/node.git
synced 2025-05-18 13:33:10 +00:00

Replace var keyword with const or let. PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io>
11 lines
293 B
JavaScript
11 lines
293 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
const vm = require('vm');
|
|
|
|
assert.doesNotThrow(function() {
|
|
var context = vm.createContext({ process: process });
|
|
var result = vm.runInContext('process.env["PATH"]', context);
|
|
assert.notEqual(undefined, result);
|
|
});
|