| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 77c84505d8c7411befd94771244caf394bc36706..50aa848070caa77d07ea23c9fd2d73d1b66bcd61 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -2269,6 +2269,8 @@ Handle<String> Factory::NumberToString(Handle<Object> number,
|
|
|
|
|
| Handle<DebugInfo> Factory::NewDebugInfo(Handle<SharedFunctionInfo> shared) {
|
| + // API functions cannot be debugged and cannot have a debug info.
|
| + DCHECK(!shared->IsApiFunction());
|
| // Allocate initial fixed array for active break points before allocating the
|
| // debug info object to avoid allocation while setting up the debug info
|
| // object.
|
|
|