Sign in
chromium
/
external
/
github.com
/
v8
/
node
/
refs/heads/main
/
.
/
test
/
parallel
/
test-instanceof.js
blob: 658f1e29c7a60f4a4714db406cc639893ba2eb69 [
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
(
Object
.
create
(
F
.
prototype
)
instanceof F
);