Skip to content

Commit

Permalink
Handle stackframes with filenames containing parentheses
Browse files Browse the repository at this point in the history
We probably need to encode those instead. Checking if this hack makes tests go green.
  • Loading branch information
eps1lon committed Jul 22, 2024
1 parent 5fa1d1a commit dda2ad2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2179,7 +2179,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2112,7 +2112,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromFetch = function (promiseForResponse, options) {
var response = createResponseFromOptions(options);
promiseForResponse.then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2180,7 +2180,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@
fakeFunctionCache = new Map(),
fakeFunctionIdx = 0,
frameRegExp =
/^ {3} at (?:(.+) \(([^\)]+):(\d+):(\d+)\)|(?:async )?([^\)]+):(\d+):(\d+))$/;
/^ {3} at (?:(.+) \((.+):(\d+):(\d+)\)|(?:async )?(.+):(\d+):(\d+))$$/;
exports.createFromNodeStream = function (stream, ssrManifest, options) {
var response = new ResponseInstance(
ssrManifest.moduleMap,
Expand Down

0 comments on commit dda2ad2

Please sign in to comment.