Permalink
Browse files

Corrected `filename` argument for `vm` calls.

Removed useless global `VM_LOG_FILE`.
  • Loading branch information...
1 parent 2ed4d94 commit 254f1f053d11d21a21529baeb315cf10b55c8f21 @MattiSG committed Jul 9, 2012
Showing with 3 additions and 12 deletions.
  1. +0 −9 src/TestRight.js
  2. +3 −3 src/controller/SuiteLoader.js
View
9 src/TestRight.js
@@ -33,15 +33,6 @@ winston.loggers.add('steps', {
}
});
-/** This value stores where individual Runner contexts stack traces should be stored.
-*
-*@see http://nodejs.org/api/vm.html#vm_vm_runincontext_code_context_filename (filename parameter)
-*
-*@constant
-*@type {String}
-*/
-var VM_LOG_FILE = 'log/vm.log';
-GLOBAL.VM_LOG_FILE = VM_LOG_FILE; // Node export
/**@namespace This module simply exports all public classes, letting you namespace them as you wish.
*
View
6 src/controller/SuiteLoader.js
@@ -171,7 +171,7 @@ var SuiteLoader = new Class({
try {
vm.runInContext(fs.readFileSync(dataFile),
this.context,
- VM_LOG_FILE);
+ dataFile);
} catch (error) {
suitesLogger.error('**Error in file "' + dataFile + '"**', { path : dataFile });
throw error;
@@ -199,7 +199,7 @@ var SuiteLoader = new Class({
+ fs.readFileSync(widgetFile) + ','
+ 'driver);',
this.context,
- VM_LOG_FILE);
+ widgetFile);
} catch (error) {
suitesLogger.error('**Error in file "' + widgetFile + '"**', { path: widgetFile });
throw error;
@@ -226,7 +226,7 @@ var SuiteLoader = new Class({
+ '__widgets__'
+ '));',
this.context,
- VM_LOG_FILE);
+ featureFile);
} catch (error) {
suitesLogger.error('**Error in file "' + featureFile + '"**', { path: featureFile });
throw error;

0 comments on commit 254f1f0

Please sign in to comment.