Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | 'use strict'; |
||
6 | (function() { |
||
7 | var testObject = {}; |
||
8 | |||
9 | if (!(Object.setPrototypeOf || testObject.__proto__)) { |
||
10 | var nativeGetPrototypeOf = Object.getPrototypeOf; |
||
11 | |||
12 | Object.getPrototypeOf = function(object) { |
||
|
|||
13 | if (object.__proto__) { |
||
14 | return object.__proto__; |
||
15 | } else { |
||
16 | return nativeGetPrototypeOf.call(Object, object); |
||
17 | } |
||
18 | } |
||
19 | } |
||
20 | })(); |
||
21 | |||
60 |