es6.object.freeze.js 276 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 // 19.1.2.5 Object.freeze(O) var isObject = require('./_is-object'); var meta = require('./_meta').onFreeze; require('./_object-sap')('freeze', function ($freeze) { return function freeze(it) { return $freeze && isObject(it) ? $freeze(meta(it)) : it; }; });