test262/test/built-ins/RegExp/S15.10.2.7_A2_T4.js

18 lines
568 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
i) The production QuantifierPrefix :: { DecimalDigits } evaluates...
ii) The production QuantifierPrefix :: ? evaluates by returning the two results 0 and 1
es5id: 15.10.2.7_A2_T4
description: Execute /b{8}c/.test("aaabbbbcccddeeeefffff") and check results
---*/
var __executed = /b{8}/.test("aaabbbbcccddeeeefffff");
//CHECK#1
if (__executed) {
$ERROR('#1: /b{8}/.test("aaabbbbcccddeeeefffff") === false');
}