debian-mirror-gitlab/core-js/internals/create-property-descriptor.js
2019-09-25 13:30:05 +05:30

8 lines
173 B
JavaScript

module.exports = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};