Dirk Alders 97486731b5 Dashboard 2 - EG-West | il y a 4 mois | |
---|---|---|
.. | ||
.github | il y a 4 mois | |
test | il y a 4 mois | |
.eslintrc | il y a 4 mois | |
.nycrc | il y a 4 mois | |
CHANGELOG.md | il y a 4 mois | |
LICENSE | il y a 4 mois | |
README.md | il y a 4 mois | |
index.d.ts | il y a 4 mois | |
index.js | il y a 4 mois | |
package.json | il y a 4 mois | |
tsconfig.json | il y a 4 mois |
Object.defineProperty
, but not IE 8’s broken one.
const assert = require('assert');
const $defineProperty = require('es-define-property');
if ($defineProperty) {
assert.equal($defineProperty, Object.defineProperty);
} else if (Object.defineProperty) {
assert.equal($defineProperty, false, 'this is IE 8');
} else {
assert.equal($defineProperty, false, 'this is an ES3 engine');
}
Simply clone the repo, npm install
, and run npm test
Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.