mirror of
https://github.com/actions/labeler.git
synced 2025-12-19 08:38:15 +00:00
build
This commit is contained in:
6
node_modules/object.getownpropertydescriptors/test/shimmed.js
generated
vendored
6
node_modules/object.getownpropertydescriptors/test/shimmed.js
generated
vendored
@@ -7,7 +7,7 @@ var test = require('tape');
|
||||
var defineProperties = require('define-properties');
|
||||
var runTests = require('./tests');
|
||||
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
||||
var functionsHaveNames = function f() {}.name === 'f';
|
||||
var functionsHaveNames = require('functions-have-names')();
|
||||
|
||||
test('shimmed', function (t) {
|
||||
t.equal(Object.getOwnPropertyDescriptors.length, 1, 'Object.getOwnPropertyDescriptors has a length of 1');
|
||||
@@ -24,8 +24,8 @@ test('shimmed', function (t) {
|
||||
var supportsStrictMode = (function () { return typeof this === 'undefined'; }());
|
||||
|
||||
t.test('bad object/this value', { skip: !supportsStrictMode }, function (st) {
|
||||
st.throws(function () { return getDescriptors(undefined, 'a'); }, TypeError, 'undefined is not an object');
|
||||
st.throws(function () { return getDescriptors(null, 'a'); }, TypeError, 'null is not an object');
|
||||
st['throws'](function () { return getDescriptors(undefined, 'a'); }, TypeError, 'undefined is not an object');
|
||||
st['throws'](function () { return getDescriptors(null, 'a'); }, TypeError, 'null is not an object');
|
||||
st.end();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user