Skip to content

Commit 43b2d41

Browse files
authored
Fix undeclared variable in emscripten_pc_get_function (#9274)
1 parent 95d9f29 commit 43b2d41

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/library.js

+2
Original file line numberDiff line numberDiff line change
@@ -4569,6 +4569,8 @@ LibraryManager.library = {
45694569
// If this is a JavaScript function, try looking it up in the unwind cache.
45704570
var frame = UNWIND_CACHE[pc];
45714571
if (!frame) return 0;
4572+
4573+
var match;
45724574
if (match = /^\s+at (.*) \(.*\)$/.exec(frame)) {
45734575
name = match[1];
45744576
} else if (match = /^(.+?)@/.exec(frame)) {

0 commit comments

Comments
 (0)