Skip to content

Curl extension for the Node.js build of PHP.wasm #1273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 29, 2024
Next Next commit
BasePHP: Check if (this[__private__dont__use]) before deleting the on…
…Message handler
  • Loading branch information
adamziel committed Apr 28, 2024
commit d740f75772e0284f30bdcb17abc70321a7e7617f
6 changes: 4 additions & 2 deletions packages/php-wasm/universal/src/lib/base-php.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,8 +872,10 @@ export abstract class BasePHP implements IsomorphicLocalPHP, Disposable {

// Delete any links between this PHP instance and the runtime
this.#wasmErrorsTarget = null;
delete this[__private__dont__use]['onMessage'];
delete this[__private__dont__use];
if (this[__private__dont__use]) {
delete this[__private__dont__use]['onMessage'];
delete this[__private__dont__use];
}
}

[Symbol.dispose]() {
Expand Down