PHP 8.2.30
Preview: index.js Size: 447 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/has-symbols/index.js

'use strict';

var origSymbol = typeof Symbol !== 'undefined' && Symbol;
var hasSymbolSham = require('./shams');

/** @type {import('.')} */
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: 2 × Files: 11

Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2026-02-03 15:06:18
Edit Download
test DIR
- drwxr-xr-x 2026-02-03 15:06:16
Edit Download
164 B lrw-r--r-- 2026-02-03 15:06:12
Edit Download
139 B lrw-r--r-- 2026-02-03 15:06:12
Edit Download
9.21 KB lrw-r--r-- 2026-02-03 15:06:18
Edit Download
73 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download
447 B lrw-r--r-- 2026-02-03 15:06:14
Edit Download
1.05 KB lrw-r--r-- 2026-02-03 15:06:12
Edit Download
2.90 KB lrw-r--r-- 2026-02-03 15:06:18
Edit Download
2.00 KB lrw-r--r-- 2026-02-03 15:06:18
Edit Download
69 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download
1.88 KB lrw-r--r-- 2026-02-03 15:06:16
Edit Download
143 B lrw-r--r-- 2026-02-03 15:06:18
Edit Download

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