Skip to content

Commit 6e25dca

Browse files
committed
Skip native timer ID conflict test on GJS like on Node
`setTimeout()` return value is an object on GJS too.
1 parent 3be5213 commit 6e25dca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec/core/DelayedFunctionSchedulerSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,8 @@ describe('DelayedFunctionScheduler', function() {
320320
typeof process !== 'undefined' &&
321321
process.versions &&
322322
typeof process.versions.node === 'string';
323-
if (NODE_JS) {
323+
const GJS = globalThis.toString() === '[object GjsGlobal]';
324+
if (NODE_JS || GJS) {
324325
pending('numeric timer ID conflicts only relevant for browsers.');
325326
}
326327
const nativeTimeoutId = setTimeout(function() {}, 100);

0 commit comments

Comments
 (0)