object-seal-o-is-a-function-object.js (438B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-setintegritylevel 6 description: Object.seal - 'O' is a Function object 7 ---*/ 8 9 var fun = function() {}; 10 var preCheck = Object.isExtensible(fun); 11 Object.seal(fun); 12 13 assert(preCheck, 'preCheck !== true'); 14 assert(Object.isSealed(fun), 'Object.isSealed(fun) !== true'); 15 16 reportCompare(0, 0);