diff --git a/README.md b/README.md index 1b47eb81..31e5c081 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Microsoft Edge) as well as Node. | Environment | Supported versions | |-------------------|--------------------| | Node | 12.17+, 14, 16, 18 | -| Safari | 14-15 | +| Safari | 14-16 | | Chrome | Evergreen | | Firefox | Evergreen, 91 | | Edge | Evergreen | diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index c32d9ab3..2bb7824d 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -2868,7 +2868,8 @@ getJasmineRequireObj().clearStack = function(j$) { SAFARI || j$.util.isUndefined(global.MessageChannel) /* tests */ ) { - // queueMicrotask is dramatically faster than MessageChannel in Safari. + // queueMicrotask is dramatically faster than MessageChannel in Safari, + // at least through version 16. // Some of our own integration tests provide a mock queueMicrotask in all // environments because it's simpler to mock than MessageChannel. return browserQueueMicrotaskImpl(global); diff --git a/scripts/run-all-browsers b/scripts/run-all-browsers index 6c3302c6..6e096640 100755 --- a/scripts/run-all-browsers +++ b/scripts/run-all-browsers @@ -27,6 +27,7 @@ run_browser chrome latest run_browser firefox latest run_browser firefox 102 run_browser firefox 91 +run_browser safari 16 run_browser safari 15 run_browser safari 14 run_browser MicrosoftEdge latest diff --git a/src/core/ClearStack.js b/src/core/ClearStack.js index ced9605a..3be593c4 100644 --- a/src/core/ClearStack.js +++ b/src/core/ClearStack.js @@ -80,7 +80,8 @@ getJasmineRequireObj().clearStack = function(j$) { SAFARI || j$.util.isUndefined(global.MessageChannel) /* tests */ ) { - // queueMicrotask is dramatically faster than MessageChannel in Safari. + // queueMicrotask is dramatically faster than MessageChannel in Safari, + // at least through version 16. // Some of our own integration tests provide a mock queueMicrotask in all // environments because it's simpler to mock than MessageChannel. return browserQueueMicrotaskImpl(global);