// Copyright 2015 the V8 project authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.(functiontestSeal(){varsloppy=arguments;varsym=Symbol();sloppy[sym]=123;Object.seal(sloppy);assertTrue(Object.isSealed(sloppy));vardesc=Object.getOwnPropertyDescriptor(sloppy,sym);assertEquals(123,desc.value);assertFalse(desc.configurable);assertTrue(desc.writable);})();(functiontestFreeze(){varsloppy=arguments;varsym=Symbol();sloppy[sym]=123;Object.freeze(sloppy);assertTrue(Object.isFrozen(sloppy));vardesc=Object.getOwnPropertyDescriptor(sloppy,sym);assertEquals(123,desc.value);assertFalse(desc.configurable);assertFalse(desc.writable);})();(functiontestIsFrozenAndIsSealed(){varsym=Symbol();varobj={[sym]:123};Object.preventExtensions(obj);assertFalse(Object.isFrozen(obj));assertFalse(Object.isSealed(obj));})();