debian-mirror-gitlab/core-js/internals/create-property-descriptor.js

9 lines
173 B
JavaScript
Raw Normal View History

2019-09-25 13:30:05 +05:30
module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};