Lines Matching refs:RegExp
15069 CompileRun("for (var j = 0; j < 10; j++) new RegExp('');");
15076 CompileRun("for (var j = 0; j < 10; j++) RegExp('')");
15330 // Test that RegExp execution can be interrupted. Specifically, we test
19130 // Atom RegExp.
19134 // Nonatom RegExp.
19908 TEST(RegExp) {
19912 v8::Handle<v8::RegExp> re = v8::RegExp::New(v8_str("foo"), v8::RegExp::kNone);
19915 CHECK_EQ(v8::RegExp::kNone, re->GetFlags());
19917 re = v8::RegExp::New(v8_str("bar"),
19918 static_cast<v8::RegExp::Flags>(v8::RegExp::kIgnoreCase |
19919 v8::RegExp::kGlobal));
19922 CHECK_EQ(v8::RegExp::kIgnoreCase | v8::RegExp::kGlobal,
19925 re = v8::RegExp::New(v8_str("baz"),
19926 static_cast<v8::RegExp::Flags>(v8::RegExp::kIgnoreCase |
19927 v8::RegExp::kMultiline));
19930 CHECK_EQ(v8::RegExp::kIgnoreCase | v8::RegExp::kMultiline,
19933 re = CompileRun("/quux/").As<v8::RegExp>();
19936 CHECK_EQ(v8::RegExp::kNone, re->GetFlags());
19938 re = CompileRun("/quux/gm").As<v8::RegExp>();
19941 CHECK_EQ(v8::RegExp::kGlobal | v8::RegExp::kMultiline,
19944 // Override the RegExp constructor and check the API constructor
19946 CompileRun("RegExp = function() {}");
19948 re = v8::RegExp::New(v8_str("foobar"), v8::RegExp::kNone);
19951 CHECK_EQ(v8::RegExp::kNone, re->GetFlags());
19953 re = v8::RegExp::New(v8_str("foobarbaz"),
19954 static_cast<v8::RegExp::Flags>(v8::RegExp::kIgnoreCase |
19955 v8::RegExp::kMultiline));
19958 CHECK_EQ(v8::RegExp::kIgnoreCase | v8::RegExp::kMultiline,
19970 re = v8::RegExp::New(v8_str("foo["), v8::RegExp::kNone);