We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0664018 commit f02e3cfCopy full SHA for f02e3cf
lib/jsonld.js
@@ -105,7 +105,7 @@ const RESOLVED_CONTEXT_CACHE_MAX_SIZE = 100;
105
// resources are cleaned up with WeakMap semantics for the documentLoaders
106
const _resolvedContextCaches = new WeakMap();
107
// default key to use when no documentLoader used
108
-const _defaultDocumentLoaderKey = {};
+const _defaultDocumentLoaderKey = Symbol();
109
110
// make a ContextResolver using a per-documentLoader shared cache
111
function _makeContextResolver({documentLoader = _defaultDocumentLoaderKey}) {
0 commit comments