All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.core-js.modules.es6.reflect.prevent-extensions.js Maven / Gradle / Ivy

The newest version!
// 26.1.12 Reflect.preventExtensions(target)
var $export = require('./_export');
var anObject = require('./_an-object');
var $preventExtensions = Object.preventExtensions;

$export($export.S, 'Reflect', {
  preventExtensions: function preventExtensions(target) {
    anObject(target);
    try {
      if ($preventExtensions) $preventExtensions(target);
      return true;
    } catch (e) {
      return false;
    }
  }
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy