Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/node-ci-2023-05-22
/
.
/
test
/
parallel
/
test-instanceof.js
blob: 5a8b588e7d0beff70cd2fbf4317eacf52ee6ad67 [
file
] [
log
] [
blame
] [
edit
]
'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
({
__proto__
:
F
.
prototype
}
instanceof F
);