Don't miss error message in 'restart frame' debug action

Review URL: https://chromiumcodereview.appspot.com/10693095

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12074 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
peter.rybin@gmail.com 2012-07-13 09:02:03 +00:00
parent 45d86e4846
commit ed371d4881

View File

@ -1824,7 +1824,14 @@ class SingleFrameTarget {
const char* LiveEdit::RestartFrame(JavaScriptFrame* frame, Zone* zone) {
SingleFrameTarget target(frame);
return DropActivationsInActiveThreadImpl(target, true, zone);
const char* result = DropActivationsInActiveThreadImpl(target, true, zone);
if (result != NULL) {
return result;
}
if (target.saved_status() == LiveEdit::FUNCTION_BLOCKED_UNDER_NATIVE_CODE) {
return "Function is blocked under native code";
}
return NULL;
}