Change some names in Promise instrumentation events.

TBR=yangguo@chromium.org

Review URL: https://codereview.chromium.org/374103002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22284 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
aandrey@chromium.org 2014-07-08 14:45:57 +00:00
parent 969a3d7b9d
commit 6872ad5c46
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ var lastMicrotaskId = 0;
});
if (instrumenting) {
id = ++lastMicrotaskId;
name = status > 0 ? "Promise.Resolved" : "Promise.Rejected";
name = status > 0 ? "Promise.resolve" : "Promise.reject";
%DebugAsyncTaskEvent({ type: "enqueue", id: id, name: name });
}
}

View File

@ -37,7 +37,7 @@ function listener(event, exec_state, event_data, data) {
if (base_id < 0)
base_id = event_data.id();
var id = event_data.id() - base_id + 1;
assertEquals("Promise.Resolved", event_data.name());
assertEquals("Promise.resolve", event_data.name());
assertLog(event_data.type() + " #" + id);
} catch (e) {
print(e + e.stack)