1
0
mirror of https://github.com/actions/labeler synced 2026-05-12 13:31:07 +02:00
This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

View File

@@ -35,6 +35,16 @@ function _prettyFormat() {
return data;
}
function _jestGetType() {
const data = require('jest-get-type');
_jestGetType = function _jestGetType() {
return data;
};
return data;
}
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
@@ -57,7 +67,7 @@ class _default {
constructor(value) {
_defineProperty(this, '_isReferenceBeingHeld', void 0);
if (this._isPrimitive(value)) {
if ((0, _jestGetType().isPrimitive)(value)) {
throw new TypeError(
[
'Primitives cannot leak memory.',
@@ -109,10 +119,6 @@ class _default {
_v().default.setFlagsFromString('--no-expose-gc');
}
}
_isPrimitive(value) {
return value !== Object(value);
}
}
exports.default = _default;