|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
642 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|---|
| 3 | // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|---|
| 4 | var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|---|
| 5 |
|
|---|
| 6 | // Nashorn ~ JDK8 bug
|
|---|
| 7 | var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|---|
| 8 |
|
|---|
| 9 | // `Object.prototype.propertyIsEnumerable` method implementation
|
|---|
| 10 | // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|---|
| 11 | exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|---|
| 12 | var descriptor = getOwnPropertyDescriptor(this, V);
|
|---|
| 13 | return !!descriptor && descriptor.enumerable;
|
|---|
| 14 | } : $propertyIsEnumerable;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.