Skip to content

Commit

Permalink
[Exceptions] minor: define exceptions in globalThis instead of global
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Feb 2, 2024
1 parent 4153712 commit dd7cea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Error/trigger_deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function createWarningObject(warning, type, code, ctor, detail) {
*/
function getErrorHandlers() {
const errorHandlers = [];
if (global.ReflectionClass === undefined) {
if (globalThis.ReflectionClass === undefined) {
return errorHandlers;
}

Expand Down

0 comments on commit dd7cea2

Please sign in to comment.