diff options
author | Colton Baker <github@netrefuge.net> | 2011-10-04 18:08:18 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-05 18:51:06 -0700 |
commit | 87286cc7371886d9856edf424785aaa890ba05a9 (patch) | |
tree | 0a3e93be28b8ebb62d9b774919d29b2c1600fa46 /test/pummel/test-vm-memleak.js | |
parent | 627f379f2273341426ab3d5cb7eb4d5c148d500a (diff) | |
download | android-node-v8-87286cc7371886d9856edf424785aaa890ba05a9.tar.gz android-node-v8-87286cc7371886d9856edf424785aaa890ba05a9.tar.bz2 android-node-v8-87286cc7371886d9856edf424785aaa890ba05a9.zip |
Fixed a lot of jslint errors.
Fixes #1831
Diffstat (limited to 'test/pummel/test-vm-memleak.js')
-rw-r--r-- | test/pummel/test-vm-memleak.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pummel/test-vm-memleak.js b/test/pummel/test-vm-memleak.js index e946f19603..e0b087d81b 100644 --- a/test/pummel/test-vm-memleak.js +++ b/test/pummel/test-vm-memleak.js @@ -28,21 +28,21 @@ var maxMem = 0; var interval = setInterval(function() { try { require('vm').runInNewContext('throw 1;'); - } catch(e) { + } catch (e) { } var rss = process.memoryUsage().rss; maxMem = Math.max(rss, maxMem); - if (Date.now() - start > 5*1000) { + if (Date.now() - start > 5 * 1000) { // wait 10 seconds. clearInterval(interval); } }, 1); process.on('exit', function() { - console.error('max mem: %dmb', Math.round(maxMem / (1024*1024))); + console.error('max mem: %dmb', Math.round(maxMem / (1024 * 1024))); // make sure we stay below 100mb assert.ok(maxMem < 50 * 1024 * 1024); }); |