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
immosquare-cleaner-0.1.7 node_modules/es-abstract/2020/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2022/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2023/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/5/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2015/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2016/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2017/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2018/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2019/IsAccessorDescriptor.js
immosquare-cleaner-0.1.7 node_modules/es-abstract/2021/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2021/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2015/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2016/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2017/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2018/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2019/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2020/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2022/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/2023/IsAccessorDescriptor.js
immosquare-cleaner-0.1.6 node_modules/es-abstract/5/IsAccessorDescriptor.js