| Index: src/runtime/runtime-literals.cc
|
| diff --git a/src/runtime/runtime-literals.cc b/src/runtime/runtime-literals.cc
|
| index 5cb97c6ce673009b02e1763a1f422a3775dbacc8..4159f765bea41dc028773f2402e4b372629553d9 100644
|
| --- a/src/runtime/runtime-literals.cc
|
| +++ b/src/runtime/runtime-literals.cc
|
| @@ -209,7 +209,7 @@ RUNTIME_FUNCTION(Runtime_CreateRegExpLiteral) {
|
|
|
| // Check if boilerplate exists. If not, create it first.
|
| Handle<Object> boilerplate(closure->literals()->literal(index), isolate);
|
| - if (boilerplate->IsUndefined()) {
|
| + if (boilerplate->IsUndefined(isolate)) {
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| isolate, boilerplate, JSRegExp::New(pattern, JSRegExp::Flags(flags)));
|
| closure->literals()->set_literal(index, *boilerplate);
|
|
|