|
@@ -325,7 +325,9 @@ exports.getGlobal = (name) => {
|
|
|
}
|
|
|
|
|
|
// Get the process object in browser.
|
|
|
-exports.__defineGetter__('process', () => exports.getGlobal('process'))
|
|
|
+Object.defineProperty(exports, 'process', {
|
|
|
+ get: () => exports.getGlobal('process')
|
|
|
+})
|
|
|
|
|
|
// Create a function that will return the specified value when called in browser.
|
|
|
exports.createFunctionWithReturnValue = (returnValue) => {
|