es6.object.prevent-extensions.js 334 B

12345678910
  1. // 19.1.2.15 Object.preventExtensions(O)
  2. var isObject = require('./_is-object');
  3. var meta = require('./_meta').onFreeze;
  4. require('./_object-sap')('preventExtensions', function ($preventExtensions) {
  5. return function preventExtensions(it) {
  6. return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;
  7. };
  8. });