summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/RegExp/15.10.5-01.js
blob: 2f8429218ab6a75a2abbca14f8e0832f6ae736ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 */

var BUGNUMBER = 614603;
var summary = "RegExp.length";

print(BUGNUMBER + ": " + summary);

/**************
 * BEGIN TEST *
 **************/

assertEq(RegExp.length, 2);
assertEq(/a/.constructor.length, 2);

if (typeof reportCompare === "function")
  reportCompare(true, true);

print("All tests passed!");