]> khamidou — GitHub mirrors - electron.git/commitdiff
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 9439ce155d611de48a7e02a35c1403d5f1de9080..dbe8cca608a74e0e469617be06c66c94d8d7025c 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);
 });