PHP 7.4.33
Preview: index.js Size: 302 B
/var/www/DMGMultiEventApiHandler.bitkit.dk/httpdocs/node_modules/has-proto/index.js
'use strict';

var test = {
	__proto__: null,
	foo: {}
};

var $Object = Object;

/** @type {import('.')} */
module.exports = function hasProto() {
	// @ts-expect-error: TS errors on an inherited property for some reason
	return { __proto__: test }.foo === test.foo
		&& !(test instanceof $Object);
};

Directory Contents

Dirs: 2 × Files: 8
Name Size Perms Modified Actions
.github DIR
- drwxr-xr-x 2024-09-19 04:54:51
Edit Download
test DIR
- drwxr-xr-x 2024-09-19 04:54:51
Edit Download
43 B lrw-r--r-- 2024-09-19 04:54:51
Edit Download
2.15 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
57 B lrw-r--r-- 2024-09-19 04:54:51
Edit Download
302 B lrw-r--r-- 2024-09-19 04:54:51
Edit Download
1.04 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
1.96 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
1.58 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
3.53 KB lrw-r--r-- 2024-09-19 04:54:51
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).