(it, create)
| 8105 | }}); |
| 8106 | }; |
| 8107 | var fastKey = function(it, create){ |
| 8108 | // return primitive with prefix |
| 8109 | if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; |
| 8110 | if(!has(it, META)){ |
| 8111 | // can't set metadata to uncaught frozen object |
| 8112 | if(!isExtensible(it))return 'F'; |
| 8113 | // not necessary to add metadata |
| 8114 | if(!create)return 'E'; |
| 8115 | // add missing metadata |
| 8116 | setMeta(it); |
| 8117 | // return object ID |
| 8118 | } return it[META].i; |
| 8119 | }; |
| 8120 | var getWeak = function(it, create){ |
| 8121 | if(!has(it, META)){ |
| 8122 | // can't set metadata to uncaught frozen object |
no test coverage detected
searching dependent graphs…