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:
parent
969a3d7b9d
commit
6872ad5c46
@ -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 });
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user