You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pyodide/BUILD.bazel
+16-4Lines changed: 16 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,12 @@ const location = undefined;
113
113
114
114
function addEventListener(){}
115
115
116
-
function reportUndefinedSymbolsNoOp() {}
116
+
function reportUndefinedSymbolsPatched(Module) {
117
+
if (Module.API.version === "0.26.0a2") {
118
+
return;
119
+
}
120
+
Module.reportUndefinedSymbols(undefined);
121
+
}
117
122
118
123
if (typeof FinalizationRegistry === "undefined") {
119
124
globalThis.FinalizationRegistry = class FinalizationRegistry {
@@ -157,7 +162,7 @@ REPLACEMENTS = [
157
162
],
158
163
[
159
164
"reportUndefinedSymbols()",
160
-
"reportUndefinedSymbolsNoOp()",
165
+
"reportUndefinedSymbolsPatched(Module)",
161
166
],
162
167
[
163
168
"crypto.getRandomValues(",
@@ -177,9 +182,16 @@ REPLACEMENTS = [
177
182
"eval(UTF8ToString(ptr))",
178
183
"(() => {throw new Error('Internal Emscripten code tried to eval, this should not happen, please file a bug report with your requirements.txt file\\'s contents')})()",
`It appears that a package ("${name}") you requested is not available yet in workerd. \n`+
303
-
'If you would like this package to be included, please open an issue at https://github.com/cloudflare/workerd/discussions/new?category=python-packages.'
0 commit comments