Move private APIs to private namespace

Fixes #2078
This commit is contained in:
Steve Gravrock
2025-09-27 13:21:09 -07:00
parent fbec066837
commit 168ff0a751
183 changed files with 2627 additions and 2459 deletions

View File

@@ -2,15 +2,19 @@ getJasmineRequireObj().Empty = function(j$) {
function Empty() {}
Empty.prototype.asymmetricMatch = function(other) {
if (j$.isString_(other) || j$.isArray_(other) || j$.isTypedArray_(other)) {
if (
j$.private.isString(other) ||
j$.private.isArray(other) ||
j$.private.isTypedArray(other)
) {
return other.length === 0;
}
if (j$.isMap(other) || j$.isSet(other)) {
if (j$.private.isMap(other) || j$.private.isSet(other)) {
return other.size === 0;
}
if (j$.isObject_(other)) {
if (j$.private.isObject(other)) {
return Object.keys(other).length === 0;
}
return false;