Skip to content

Commit

Permalink
Changes for Pyodide 0.27.0 (#3309)
Browse files Browse the repository at this point in the history
It unconditionally uses FinalizationRegistry so we need to make a dummy
class.
  • Loading branch information
hoodmane authored Jan 9, 2025
1 parent d9e5aa5 commit d189253
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pyodide/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,13 @@ const location = undefined;
function addEventListener(){}
function reportUndefinedSymbolsNoOp() {}
if (typeof FinalizationRegistry === "undefined") {
globalThis.FinalizationRegistry = class FinalizationRegistry {
register(){}
unregister(){}
};
}
"""

REPLACEMENTS = [
Expand Down

0 comments on commit d189253

Please sign in to comment.