HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/base.komma.pro/node_modules/es-abstract/test/helpers/defineProperty.js
'use strict';

var oDP = Object.defineProperty;
try {
	oDP({}, 'a', { value: 1 });
} catch (e) {
	// IE 8
	oDP = null;
}

module.exports = function defineProperty(O, P, Desc) {
	if (oDP) {
		return oDP(O, P, Desc);
	}
	if ((Desc.enumerable && Desc.configurable && Desc.writable) || !(P in O)) {
		O[P] = Desc.value; // eslint-disable-line no-param-reassign
		return O;
	}

	throw new SyntaxError('helper does not yet support this configuration');
};
module.exports.oDP = oDP;