summaryrefslogtreecommitdiff
path: root/test/built-ins/Object/seal/15.2.3.8-3-1.js
blob: 4beb1bd674ba7902b4701b3979943d12485a6359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright (c) 2012 Ecma International.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
es5id: 15.2.3.8-3-1
description: Object.seal - returned object is not extensible
---*/

var obj = {};
var preCheck = Object.isExtensible(obj);
Object.seal(obj);

assert(preCheck, 'preCheck !== true');
assert.sameValue(Object.isExtensible(obj), false, 'Object.isExtensible(obj)');