Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / object-property-is-enumerable.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/object-property-is-enumerable.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/object-property-is-enumerable.js
new file mode 100644 (file)
index 0000000..9ff2209
--- /dev/null
@@ -0,0 +1,13 @@
+'use strict';
+var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
+var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+
+// Nashorn ~ JDK8 bug
+var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
+
+// `Object.prototype.propertyIsEnumerable` method implementation
+// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
+exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
+  var descriptor = getOwnPropertyDescriptor(this, V);
+  return !!descriptor && descriptor.enumerable;
+} : nativePropertyIsEnumerable;