UNPKG
tc39-weakrefs-shim
Version:
latest (0.1.0)
0.1.0
0.0.2
0.0.1
0.0.1-security
Shim for TC39 Weakrefs proposal
github.com/mhofman/tc39-weakrefs-shim
mhofman/tc39-weakrefs-shim
tc39-weakrefs-shim
/
lib
/
global
/
gc.js
7 lines
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
const
gcAvailable =
typeof
gc ==
"function"
;
exports
.
available
= gcAvailable;
const
globalGc = gcAvailable ? gc :
undefined
;
exports
.
gc
= globalGc;
//# sourceMappingURL=gc.js.map