| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index 4ab6b6173120c63379f7313e2521a47236536731..9080f5eaaa41b55b08e01fae4bbcc35a020a6d53 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -174,12 +174,7 @@ Handle<Object> Execution::GetFunctionDelegate(Handle<Object> object) {
|
|
|
| // Regular expressions can be called as functions in both Firefox
|
| // and Safari so we allow it too.
|
| - bool is_regexp =
|
| - object->IsHeapObject() &&
|
| - (HeapObject::cast(*object)->map()->constructor() ==
|
| - *Top::regexp_function());
|
| -
|
| - if (is_regexp) {
|
| + if (object->IsJSRegExp()) {
|
| Handle<String> exec = Factory::exec_symbol();
|
| return Handle<Object>(object->GetProperty(*exec));
|
| }
|
|
|