@tarojs/runtime 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,10 +70,9 @@ if (process.env.TARO_ENV === 'h5') {
70
70
  };
71
71
  // Load global or shim versions of Map, Set, and WeakMap
72
72
  var functionPrototype = Object.getPrototypeOf(Function);
73
- var usePolyfill = isObject(process) && process.env && process.env["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true";
74
73
  var _Map = Map;
75
74
  var _Set = Set;
76
- var _WeakMap = !usePolyfill && isFunction(WeakMap) ? WeakMap : CreateWeakMapPolyfill();
75
+ var _WeakMap = isFunction(WeakMap) ? WeakMap : CreateWeakMapPolyfill();
77
76
  // [[Metadata]] internal slot
78
77
  // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots
79
78
  var Metadata = new _WeakMap();