PHP 8.2.30
Preview: index.js Size: 394 B
/usr/lib/node_modules/npm/node_modules/has-symbols/index.js

'use strict';

var origSymbol = global.Symbol;
var hasSymbolSham = require('./shams');

module.exports = function hasNativeSymbols() {
	if (typeof origSymbol !== 'function') { return false; }
	if (typeof Symbol !== 'function') { return false; }
	if (typeof origSymbol('foo') !== 'symbol') { return false; }
	if (typeof Symbol('bar') !== 'symbol') { return false; }

	return hasSymbolSham();
};

Directory Contents

Dirs: 0 × Files: 8

Name Size Perms Modified Actions
578 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
2.21 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
58 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
394 B lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.05 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
2.05 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.76 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download
1.70 KB lrw-r--r-- 2021-03-10 14:36:39
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).