summaryrefslogtreecommitdiff
path: root/test/addons/buffer-free-callback
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2016-04-20 23:05:44 -0700
committerRich Trott <rtrott@gmail.com>2016-04-28 19:22:16 -0700
commit6c49714df0611c08f0fd27162193893bc1792a92 (patch)
tree3306a24ce5b07de41ef0a865574d92325606c036 /test/addons/buffer-free-callback
parent2e845f85016f4d4b971e534f1f50f0c3416952e3 (diff)
downloadandroid-node-v8-6c49714df0611c08f0fd27162193893bc1792a92.tar.gz
android-node-v8-6c49714df0611c08f0fd27162193893bc1792a92.tar.bz2
android-node-v8-6c49714df0611c08f0fd27162193893bc1792a92.zip
test,tools: limit lint tolerance of gc global
Lint rules permitted the `gc` global in any test file. This change limits it to just the files that need it. PR-URL: https://github.com/nodejs/node/pull/6324 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/addons/buffer-free-callback')
-rw-r--r--test/addons/buffer-free-callback/test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/addons/buffer-free-callback/test.js b/test/addons/buffer-free-callback/test.js
index f9d7ec90f8..09c19baecf 100644
--- a/test/addons/buffer-free-callback/test.js
+++ b/test/addons/buffer-free-callback/test.js
@@ -11,9 +11,9 @@ function check(size, alignment, offset) {
buf = null;
binding.check(slice);
slice = null;
- gc();
- gc();
- gc();
+ global.gc();
+ global.gc();
+ global.gc();
}
check(64, 1, 0);