Bakhtina Sofya b84cb877be 1st comm | 3 hete | |
---|---|---|
.. | ||
.github | 3 hete | |
test | 3 hete | |
.eslintrc | 3 hete | |
.nycrc | 3 hete | |
CHANGELOG.md | 3 hete | |
LICENSE | 3 hete | |
README.md | 3 hete | |
index.d.ts | 3 hete | |
index.js | 3 hete | |
package.json | 3 hete | |
tsconfig.json | 3 hete |
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.