aboutsummaryrefslogtreecommitdiffstats
path: root/test/built-ins/Object/seal/15.2.3.8-2-c-2.js
blob: 49a8aef6df9e0e6e5af428f5645bc09a69b4dc9b (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-2-c-2
description: Object.seal - 'O' is an Array object
---*/

var arr = [0, 1];
var preCheck = Object.isExtensible(arr);
Object.seal(arr);

assert(preCheck, 'preCheck !== true');
assert(Object.isSealed(arr), 'Object.isSealed(arr) !== true');