Expose gc() in specs.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 29 Jul 2013 08:35:42 +0000 (16:35 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 29 Jul 2013 08:35:42 +0000 (16:35 +0800)
spec/main.js

index 9439ce1..dbe8cca 100644 (file)
@@ -4,6 +4,8 @@ var BrowserWindow = require('browser-window');
 
 var window = null;
 
+app.commandLine.appendSwitch('js-flags', '--expose_gc');
+
 ipc.on('message', function() {
   ipc.send.apply(this, arguments);
 });