Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ie8-dom-define.js 477B

123456789101112
  1. 'use strict';
  2. var DESCRIPTORS = require('../internals/descriptors');
  3. var fails = require('../internals/fails');
  4. var createElement = require('../internals/document-create-element');
  5. // Thanks to IE8 for its funny defineProperty
  6. module.exports = !DESCRIPTORS && !fails(function () {
  7. // eslint-disable-next-line es/no-object-defineproperty -- required for testing
  8. return Object.defineProperty(createElement('div'), 'a', {
  9. get: function () { return 7; }
  10. }).a !== 7;
  11. });