source:
node_modules/has-proto/index.js@
65b6638
Last change on this file since 65b6638 was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 197 bytes |
Line | |
---|---|
1 | 'use strict'; |
2 | |
3 | var test = { |
4 | foo: {} |
5 | }; |
6 | |
7 | var $Object = Object; |
8 | |
9 | module.exports = function hasProto() { |
10 | return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object); |
11 | }; |
Note:
See TracBrowser
for help on using the repository browser.