| |
| |
| |
| |
| |
| "use strict"; |
| Object.defineProperty(exports, "__esModule", { |
| value: true |
| }); |
| 0 && (module.exports = { |
| describeHasCheckingStringProperty: null, |
| describeStringPropertyAccess: null, |
| wellKnownProperties: null |
| }); |
| function _export(target, all) { |
| for(var name in all)Object.defineProperty(target, name, { |
| enumerable: true, |
| get: all[name] |
| }); |
| } |
| _export(exports, { |
| describeHasCheckingStringProperty: function() { |
| return describeHasCheckingStringProperty; |
| }, |
| describeStringPropertyAccess: function() { |
| return describeStringPropertyAccess; |
| }, |
| wellKnownProperties: function() { |
| return wellKnownProperties; |
| } |
| }); |
| const isDefinitelyAValidIdentifier = /^[A-Za-z_$][A-Za-z0-9_$]*$/; |
| function describeStringPropertyAccess(target, prop) { |
| if (isDefinitelyAValidIdentifier.test(prop)) { |
| return "`" + target + "." + prop + "`"; |
| } |
| return "`" + target + "[" + JSON.stringify(prop) + "]`"; |
| } |
| function describeHasCheckingStringProperty(target, prop) { |
| const stringifiedProp = JSON.stringify(prop); |
| return "`Reflect.has(" + target + ", " + stringifiedProp + ")`, `" + stringifiedProp + " in " + target + "`, or similar"; |
| } |
| const wellKnownProperties = new Set([ |
| 'hasOwnProperty', |
| 'isPrototypeOf', |
| 'propertyIsEnumerable', |
| 'toString', |
| 'valueOf', |
| 'toLocaleString', |
| |
| |
| 'then', |
| 'catch', |
| 'finally', |
| |
| |
| 'status', |
| |
| 'displayName', |
| '_debugInfo', |
| |
| |
| 'toJSON', |
| '$$typeof', |
| '__esModule' |
| ]); |
|
|
| |