From 6872ad5c46b4f69ad3b587a41c99a7b9cf78d679 Mon Sep 17 00:00:00 2001 From: "aandrey@chromium.org" Date: Tue, 8 Jul 2014 14:45:57 +0000 Subject: [PATCH] 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 --- src/promise.js | 2 +- test/mjsunit/es6/debug-promises-async-task-event.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/promise.js b/src/promise.js index 9289cc5..c94e059 100644 --- a/src/promise.js +++ b/src/promise.js @@ -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 }); } } diff --git a/test/mjsunit/es6/debug-promises-async-task-event.js b/test/mjsunit/es6/debug-promises-async-task-event.js index eba5f8e..88030a2 100644 --- a/test/mjsunit/es6/debug-promises-async-task-event.js +++ b/test/mjsunit/es6/debug-promises-async-task-event.js @@ -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) -- 2.7.4