source:
node_modules/has-proto/index.js
Last change on this file was d24f17c, checked in by , 15 months ago | |
---|---|
|
|
File size: 197 bytes |
Rev | Line | |
---|---|---|
[d24f17c] | 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.