/usr/lib/nodejs/es6-weak-map/is-native-implemented.js is in node-es6-weak-map 2.0.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 | // Exports true if environment provides native `WeakMap` implementation, whatever that is.
'use strict';
module.exports = (function () {
if (typeof WeakMap !== 'function') return false;
return (Object.prototype.toString.call(new WeakMap()) === '[object WeakMap]');
}());
|