(it, create)
| 38033 | }; |
| 38034 | |
| 38035 | var fastKey = function (it, create) { |
| 38036 | // return a primitive with prefix |
| 38037 | if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; |
| 38038 | if (!hasOwn(it, METADATA)) { |
| 38039 | // can't set metadata to uncaught frozen object |
| 38040 | if (!isExtensible(it)) return 'F'; |
| 38041 | // not necessary to add metadata |
| 38042 | if (!create) return 'E'; |
| 38043 | // add missing metadata |
| 38044 | setMetadata(it); |
| 38045 | // return object ID |
| 38046 | } return it[METADATA].objectID; |
| 38047 | }; |
| 38048 | |
| 38049 | var getWeakData = function (it, create) { |
| 38050 | if (!hasOwn(it, METADATA)) { |
no test coverage detected