mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-06 04:59:14 +08:00
21 lines
628 B
Text
21 lines
628 B
Text
'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 function’s name is not enumerable');
|
||
et.end();
|
||
});
|
||
|
||
runTests(function (fn) { return fn.name; }, t);
|
||
|
||
t.end();
|
||
});
|