( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/../tmpr/../tmpr/../tmpr/../node_modules/object.hasown/test/index.mjs
import parseInt, * as parseIntModule from 'object.hasown';
import test from 'tape';
import runTests from './tests.js';

test('as a function', (t) => {
	runTests(parseInt, t);

	t.end();
});

test('named exports', async (t) => {
	t.deepEqual(
		Object.keys(parseIntModule).sort(),
		['default', 'shim', 'getPolyfill', 'implementation'].sort(),
		'has expected named exports',
	);

	const { shim, getPolyfill, implementation } = parseIntModule;
	t.equal((await import('object.hasown/shim')).default, shim, 'shim named export matches deep export');
	t.equal((await import('object.hasown/implementation')).default, implementation, 'implementation named export matches deep export');
	t.equal((await import('object.hasown/polyfill')).default, getPolyfill, 'getPolyfill named export matches deep export');

	t.end();
});