We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ceb441 commit f4ef517Copy full SHA for f4ef517
test/parallel/test-crypto-dh-leak.js
@@ -10,7 +10,7 @@ if (process.config.variables.asan)
10
const assert = require('assert');
11
const crypto = require('crypto');
12
13
-const before = process.memoryUsage().rss;
+const before = process.memoryUsage.rss();
14
{
15
const dh = crypto.createDiffieHellman(common.hasFipsCrypto ? 1024 : 256);
16
const publicKey = dh.generateKeys();
@@ -21,7 +21,7 @@ const before = process.memoryUsage().rss;
21
}
22
23
global.gc();
24
-const after = process.memoryUsage().rss;
+const after = process.memoryUsage.rss();
25
26
// RSS should stay the same, ceteris paribus, but allow for
27
// some slop because V8 mallocs memory during execution.
0 commit comments