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 20, 2024
1 parent ab8effe commit 2926bc3
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 2926bc3

Please sign in to comment.