| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index e84ab9e8ed430e4e4fb4779b4166669c4551730a..990eca2e5bd7f537fa7ea3c0e0969b22d5492a1c 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -210,23 +210,6 @@ Handle<Object> Execution::GetFunctionDelegate(Handle<Object> object) {
|
| // If you return a function from here, it will be called when an
|
| // attempt is made to call the given object as a function.
|
|
|
| - // Regular expressions can be called as functions in both Firefox
|
| - // and Safari so we allow it too.
|
| - if (object->IsJSRegExp()) {
|
| - Handle<String> exec = factory->exec_symbol();
|
| - // TODO(lrn): Bug 617. We should use the default function here, not the
|
| - // one on the RegExp object.
|
| - Object* exec_function;
|
| - { MaybeObject* maybe_exec_function = object->GetProperty(*exec);
|
| - // This can lose an exception, but the alternative is to put a failure
|
| - // object in a handle, which is not GC safe.
|
| - if (!maybe_exec_function->ToObject(&exec_function)) {
|
| - return factory->undefined_value();
|
| - }
|
| - }
|
| - return Handle<Object>(exec_function);
|
| - }
|
| -
|
| // Objects created through the API can have an instance-call handler
|
| // that should be used when calling the object as a function.
|
| if (object->IsHeapObject() &&
|
|
|