summaryrefslogtreecommitdiff
path: root/test/parallel/test-instanceof.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-instanceof.js')
-rw-r--r--test/parallel/test-instanceof.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-instanceof.js b/test/parallel/test-instanceof.js
index 45960621a6..c3d4ece42a 100644
--- a/test/parallel/test-instanceof.js
+++ b/test/parallel/test-instanceof.js
@@ -1,10 +1,11 @@
'use strict';
-require('../common');
+
+const common = require('../common');
const assert = require('assert');
// Regression test for instanceof, see
// https://github.com/nodejs/node/issues/7592
-const F = () => {};
+const F = common.noop;
F.prototype = {};
assert(Object.create(F.prototype) instanceof F);