UNPKG
care-js
Version:
latest (3.3.4)
3.3.4
Standard library
care-js
/
internals
/
correct-prototype-getter.js
8 lines
(6 loc)
•
208 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
fails =
require
(
'../internals/fails'
);
module
.
exports
= !
fails
(
function
(
) {
function
F
(
) {
/* empty */
} F.
prototype
.
constructor
=
null
;
return
Object
.
getPrototypeOf
(
new
F
()) !== F.
prototype
; });