summaryrefslogtreecommitdiffstats
path: root/node_modules/es-abstract/2017/IsDataDescriptor.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es-abstract/2017/IsDataDescriptor.js')
-rw-r--r--node_modules/es-abstract/2017/IsDataDescriptor.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/node_modules/es-abstract/2017/IsDataDescriptor.js b/node_modules/es-abstract/2017/IsDataDescriptor.js
deleted file mode 100644
index 0ad3045..0000000
--- a/node_modules/es-abstract/2017/IsDataDescriptor.js
+++ /dev/null
@@ -1,23 +0,0 @@
-'use strict';
-
-var has = require('has');
-
-var assertRecord = require('../helpers/assertRecord');
-
-var Type = require('./Type');
-
-// https://www.ecma-international.org/ecma-262/6.0/#sec-isdatadescriptor
-
-module.exports = function IsDataDescriptor(Desc) {
- if (typeof Desc === 'undefined') {
- return false;
- }
-
- assertRecord(Type, 'Property Descriptor', 'Desc', Desc);
-
- if (!has(Desc, '[[Value]]') && !has(Desc, '[[Writable]]')) {
- return false;
- }
-
- return true;
-};