Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / RegExp / S15.10.4.1_A2_T1.js
blob87ebc9ab9a6b4ade7c9f7491560afb30a2d78ce7
1 // Copyright 2009 the Sputnik authors.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
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 ---*/
14 var regExpObj = new RegExp(/\u0042/i, "i");
15 assert(regExpObj.ignoreCase);
17 reportCompare(0, 0);