From 24126f4a585d8af2390c384c9d452f9ae6518873 Mon Sep 17 00:00:00 2001 From: Gabriel Schulhof Date: Thu, 17 Aug 2017 15:37:02 +0300 Subject: [PATCH] squash: fix linter issues --- test/addons-napi/test_general/test.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/addons-napi/test_general/test.js b/test/addons-napi/test_general/test.js index 07d88eb94c324b..484707e868db58 100644 --- a/test/addons-napi/test_general/test.js +++ b/test/addons-napi/test_general/test.js @@ -59,12 +59,13 @@ assert.strictEqual(test_general.testNapiTypeof(null), 'null'); // Ensure that garbage collecting an object with a wrapped native item results // in the finalize callback being called. -var w = {}; +let w = {}; test_general.wrap(w, []); w = null; global.gc(); assert.strictEqual(test_general.derefItemWasCalled(), true, - 'deref_item() was called upon garbage collecting a wrapped object'); + 'deref_item() was called upon garbage collecting a ' + + 'wrapped object'); // Assert that wrapping twice fails. const x = {}; @@ -83,10 +84,10 @@ assert.doesNotThrow(function() { // Ensure that removing a wrap and garbage collecting does not fire the // finalize callback. -var z = {}; +let z = {}; test_general.testFinalizeWrap(z); test_general.removeWrap(z); z = null; global.gc(); assert.strictEqual(test_general.finalizeWasCalled(), false, - 'finalize callback was not called upon garbage collection'); + 'finalize callback was not called upon garbage collection');