test262/test/built-ins/RegExp/S15.10.2.7_A1_T2.js
André Bargull 94be366f65 Fix strict mode errors in built-ins/RegExp
- Add missing "var" declarations and noStrict flags
- Remove with statements

Part of issue #35.
2015-04-29 17:42:48 +02:00

18 lines
476 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The production QuantifierPrefix :: { DecimalDigits , DecimalDigits }
evaluates as ...
es5id: 15.10.2.7_A1_T2
description: Execute /\d{2,4}/.test("the 7 movie") and check results
---*/
var __executed = /\d{2,4}/.test("the 7 movie");
//CHECK#1
if (__executed) {
$ERROR('#1: /\\d{2,4}/.test("the 7 movie") === false');
}