Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/vm.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vm.js')
-rw-r--r--lib/vm.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/vm.js b/lib/vm.js
index 57d5d60cf5b..ddd70fcbe5a 100644
--- a/lib/vm.js
+++ b/lib/vm.js
@@ -127,9 +127,8 @@ class Script extends ContextifyScript {
const { breakOnSigint, args } = getRunInContextArgs(options);
if (breakOnSigint && process.listenerCount('SIGINT') > 0) {
return sigintHandlersWrap(super.runInThisContext, this, args);
- } else {
- return super.runInThisContext(...args);
}
+ return super.runInThisContext(...args);
}
runInContext(contextifiedObject, options) {
@@ -138,9 +137,8 @@ class Script extends ContextifyScript {
if (breakOnSigint && process.listenerCount('SIGINT') > 0) {
return sigintHandlersWrap(super.runInContext, this,
[contextifiedObject, ...args]);
- } else {
- return super.runInContext(contextifiedObject, ...args);
}
+ return super.runInContext(contextifiedObject, ...args);
}
runInNewContext(contextObject, options) {