Muqriz 48f16bfc3e initail first | 4 months ago | |
---|---|---|
.. | ||
.github | 4 months ago | |
test | 4 months ago | |
.eslintrc | 4 months ago | |
.nycrc | 4 months ago | |
CHANGELOG.md | 4 months ago | |
LICENSE | 4 months ago | |
README.md | 4 months ago | |
index.d.ts | 4 months ago | |
index.js | 4 months ago | |
package.json | 4 months ago | |
tsconfig.json | 4 months ago |
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.