Permalink
Browse files

test: add regression test for instanceof

Add regression test for issue
#7592.
The issue was fixed in upstream V8 and this test case was
previously added with a manual cherry pick for v6.x.

Related to: #7638 and
#7592.

PR-URL: #9178
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
fhinkel authored and jasnell committed Oct 19, 2016
1 parent 2cdd5cc commit d62e7bd1f92280fb9fd0ba3ccc403fbbb4830fa8
Showing with 10 additions and 0 deletions.
  1. +10 −0 test/parallel/test-instanceof.js
@@ -0,0 +1,10 @@
'use strict';
require('../common');
const assert = require('assert');
// Regression test for instanceof, see
// https://github.com/nodejs/node/issues/7592
const F = () => {};
F.prototype = {};
assert(Object.create(F.prototype) instanceof F);

0 comments on commit d62e7bd

Please sign in to comment.