@jsenv/test 3.2.0 → 3.3.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.
@@ -910,9 +910,7 @@ const getErrorName = (value) => {
910
910
 
911
911
  const getPropertiesFromEvalOrigin = (origin) => {
912
912
  // Most eval() calls are in this format
913
- const topLevelEvalMatch = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(
914
- origin,
915
- );
913
+ const topLevelEvalMatch = /^eval at [^(]+ \(.+:\d+:\d+\)$/.exec(origin);
916
914
  if (topLevelEvalMatch) {
917
915
  const source = topLevelEvalMatch[2];
918
916
  const line = Number(topLevelEvalMatch[3]);
@@ -924,7 +922,7 @@ const getPropertiesFromEvalOrigin = (origin) => {
924
922
  };
925
923
  }
926
924
  // Parse nested eval() calls using recursion
927
- const nestedEvalMatch = /^eval at ([^(]+) \((.+)\)$/.exec(origin);
925
+ const nestedEvalMatch = /^eval at [^(]+ \(.+\)$/.exec(origin);
928
926
  if (nestedEvalMatch) {
929
927
  return getPropertiesFromEvalOrigin(nestedEvalMatch[2]);
930
928
  }