Urara-Blog/node_modules/.pnpm-store/v3/files/79/8124e40c99938b54fa091e7240231e711cb8779e88f555ff24b1ea3e4ac4c2e006cc99b8fcc15bf018f42ce8711ea3331b950c7223751a9229d44c26998830
2022-08-14 01:14:53 +08:00

21 lines
628 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
require('../auto');
var test = require('tape');
var supportsDescriptors = require('define-properties').supportsDescriptors;
var isEnumerable = Object.prototype.propertyIsEnumerable;
var runTests = require('./tests');
test('shimmed', function (t) {
t.test('enumerability', { skip: !supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(Function.prototype, 'name'), 'Function#name is not enumerable');
et.equal(false, isEnumerable.call(function foo() {}, 'name'), 'a functions name is not enumerable');
et.end();
});
runTests(function (fn) { return fn.name; }, t);
t.end();
});