-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #640 from michaelbpaulson/no-more-max
getCache was still getting serializable issues
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var __parent = require("./../internal/parent"); | ||
var __key = require("./../internal/key"); | ||
var __version = require("./../internal/version"); | ||
var __prev = require("./../internal/prev"); | ||
var __next = require("./../internal/next"); | ||
|
||
/** | ||
* If the key passed in is an internal key. We will use a simple checking to | ||
* prevent infinite recursion on some machines. | ||
* | ||
* @param {String} x - | ||
* @private | ||
* @returns {Boolean} | ||
*/ | ||
module.exports = function isInternalKey(x) { | ||
return x === __parent || | ||
x === __key || | ||
x === __version || | ||
x === __prev || | ||
x === __next || | ||
x === "$size"; | ||
}; |