Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis.Learn more
Socket
Socket

has-property-descriptors

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

has-property-descriptors

Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.

    1.0.0latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
23,397,311
increased by6.57%

Weekly downloads

Changelog

Source

v1.0.0 - 2022-04-14

Commits

Readme

Source

has-property-descriptors Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Does the environment have full property descriptor support? Handles IE 8's broken defineProperty/gOPD.

Example

var hasPropertyDescriptors = require('has-property-descriptors'); var assert = require('assert'); assert.equal(hasPropertyDescriptors(), true); // will be `false` in IE 6-8, and ES5 engines // Arrays can not have their length `[[Defined]]` in some engines assert.equal(hasPropertyDescriptors.hasArrayLengthDefineBug(), false); // will be `true` in Firefox 4-22, and node v0.6

Tests

Simply clone the repo, npm install, and run npm test

Keywords

FAQs

Last updated on 15 Apr 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
Socket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc