@letsrunit/playwright 0.19.4 → 0.20.0

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.
package/dist/index.js CHANGED
@@ -68881,9 +68881,11 @@ function formatLocatorChain(candidates) {
68881
68881
  function createFallbackLocator(candidates) {
68882
68882
  const primary = candidates[0];
68883
68883
  const unsupported = /* @__PURE__ */ new Set(["filter", "getByRole", "getByLabel"]);
68884
+ const passthroughMetaProperties = /* @__PURE__ */ new Set(["constructor", "__proto__"]);
68884
68885
  const proxy = new Proxy(primary, {
68885
68886
  get(_target, prop) {
68886
68887
  if (typeof prop !== "string") return primary[prop];
68888
+ if (passthroughMetaProperties.has(prop)) return primary[prop];
68887
68889
  switch (prop) {
68888
68890
  case "toString":
68889
68891
  return () => formatLocatorChain(candidates);