Skip to content

Commit

Permalink
squash: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Schulhof committed Aug 17, 2017
1 parent 0f07c2f commit 24126f4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/addons-napi/test_general/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand All @@ -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');

0 comments on commit 24126f4

Please sign in to comment.