Sha256: e44b935f83a0e9d562e9d7ad82cfa4e7da334b34642aaae2aa0b130cdafccacf

Contents?: true

Size: 446 Bytes

Versions: 274

Compression:

Stored size: 446 Bytes

Contents

'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;
};

Version data entries

274 entries across 30 versions & 4 rubygems

Version Path
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2018/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2021/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2020/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2019/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2017/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2015/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2016/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/5/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2023/IsAccessorDescriptor.js
decidim-0.26.8 packages/eslint-config/node_modules/es-abstract/2022/IsAccessorDescriptor.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/es-abstract/5/IsAccessorDescriptor.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/es-abstract/5/IsAccessorDescriptor.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/es-abstract/5/IsAccessorDescriptor.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/es-abstract/5/IsAccessorDescriptor.js