Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/S15.10.4.1_A2_T1.js

raw
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 info: |
6 pattern is an object R whose [[Class]] property is "RegExp" and flags
7 is not undefined
8 es5id: 15.10.4.1_A2_T1
9 description: >
10 Checking if execution of "new RegExp(pattern, "i")", where the
11 pattern is "/\u0042/i", does not fail
12 ---*/
13
14 //CHECK#1
15 var regExpObj = new RegExp(/\u0042/i, "i");
16 assert(regExpObj.ignoreCase);