~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/tests/ecma_5/Array/redefine-length-frozen-array.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Any copyright is dedicated to the Public Domain.
 
3
 * http://creativecommons.org/licenses/publicdomain/
 
4
 * Contributor:
 
5
 *   Jeff Walden <jwalden+code@mit.edu>
 
6
 */
 
7
 
 
8
//-----------------------------------------------------------------------------
 
9
var BUGNUMBER = 866580;
 
10
var summary = "Assertion redefining length property of a frozen array";
 
11
 
 
12
print(BUGNUMBER + ": " + summary);
 
13
 
 
14
/**************
 
15
 * BEGIN TEST *
 
16
 **************/
 
17
 
 
18
var arr = Object.freeze([]);
 
19
Object.defineProperty(arr, "length", {});
 
20
 
 
21
/******************************************************************************/
 
22
 
 
23
if (typeof reportCompare === "function")
 
24
  reportCompare(true, true);
 
25
 
 
26
print("Tests complete");