From e4c69e960eb72db8485799e46509ba14021f5dda Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Tue, 4 Nov 2025 05:52:34 -0800 Subject: [PATCH] Add 'use strict' to AllOf.js --- lib/jasmine-core/jasmine.js | 2 ++ src/core/asymmetric_equality/AllOf.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index 88a8b3e6..ca6d8f14 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -2193,6 +2193,8 @@ getJasmineRequireObj().JsApiReporter = function(j$) { }; getJasmineRequireObj().AllOf = function(j$) { + 'use strict'; + function AllOf() { const expectedValues = Array.from(arguments); if (expectedValues.length === 0) { diff --git a/src/core/asymmetric_equality/AllOf.js b/src/core/asymmetric_equality/AllOf.js index db67a947..7a6bb3e7 100644 --- a/src/core/asymmetric_equality/AllOf.js +++ b/src/core/asymmetric_equality/AllOf.js @@ -1,4 +1,6 @@ getJasmineRequireObj().AllOf = function(j$) { + 'use strict'; + function AllOf() { const expectedValues = Array.from(arguments); if (expectedValues.length === 0) {