mirror of
https://github.com/actions/labeler
synced 2026-05-09 14:31:02 +02:00
build
This commit is contained in:
11
node_modules/object.getownpropertydescriptors/test/tests.js
generated
vendored
11
node_modules/object.getownpropertydescriptors/test/tests.js
generated
vendored
@@ -48,9 +48,7 @@ module.exports = function (getDescriptors, t) {
|
||||
});
|
||||
}
|
||||
|
||||
/* eslint-disable no-extend-native */
|
||||
delete Object.prototype[key];
|
||||
/* eslint-enable no-extend-native */
|
||||
st.end();
|
||||
});
|
||||
|
||||
@@ -74,9 +72,9 @@ module.exports = function (getDescriptors, t) {
|
||||
st.end();
|
||||
});
|
||||
|
||||
var supportsSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';
|
||||
var supportsSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
||||
t.test('gets Symbol descriptors too', { skip: !supportsSymbols }, function (st) {
|
||||
var symbol = Symbol();
|
||||
var symbol = Symbol('sym');
|
||||
var symDescriptor = {
|
||||
configurable: false,
|
||||
enumerable: true,
|
||||
@@ -115,10 +113,7 @@ module.exports = function (getDescriptors, t) {
|
||||
return Object.getOwnPropertyDescriptor(target, key);
|
||||
},
|
||||
ownKeys: function () {
|
||||
return [
|
||||
'foo',
|
||||
'bar'
|
||||
];
|
||||
return ['foo', 'bar'];
|
||||
}
|
||||
});
|
||||
st.deepEqual(getDescriptors(proxy), { foo: fooDescriptor }, 'object has no descriptors');
|
||||
|
||||
Reference in New Issue
Block a user