`Environment::GetCurrent` may not available in the context of OOM. Removes the cyclic `Environment::GetCurrent` and `env->isolate()` calls to ensure both `isolate` and `env` is present if available. However, this behavior is not guaranteed. As `Environment::GetCurrent` didn't allocate new handles in the heap, when a Context is entered it can still get the valid env pointer. Removes the unstable assertion of the absence of env in the test. PR-URL: https://github.com/nodejs/node/pull/44398 Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> |
||
|---|---|---|
| .. | ||
| report.status | ||
| test-report-config.js | ||
| test-report-fatalerror-oomerror-compact.js | ||
| test-report-fatalerror-oomerror-directory.js | ||
| test-report-fatalerror-oomerror-filename.js | ||
| test-report-fatalerror-oomerror-not-set.js | ||
| test-report-fatalerror-oomerror-set.js | ||
| test-report-getreport.js | ||
| test-report-signal.js | ||
| test-report-uncaught-exception-compat.js | ||
| test-report-uncaught-exception-handled.js | ||
| test-report-uncaught-exception-override.js | ||
| test-report-uncaught-exception-primitives.js | ||
| test-report-uncaught-exception-symbols.js | ||
| test-report-uncaught-exception.js | ||
| test-report-uv-handles.js | ||
| test-report-worker.js | ||
| test-report-writereport.js | ||
| testcfg.py | ||