es6.object.seal.js 256 B

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