Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: src/debug/debug.js

Issue 2415023002: [promises] Move async debug event creation to c++ (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug/debug.cc ('k') | src/factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.js
diff --git a/src/debug/debug.js b/src/debug/debug.js
index b2111eb8d752a0aff3c5af3555a301e308fc0b6f..29e6fc21aba7cde1963b4b7965affa005e3f2e0a 100644
--- a/src/debug/debug.js
+++ b/src/debug/debug.js
@@ -1142,15 +1142,15 @@ function MakeScriptObject_(script, include_source) {
}
-function MakeAsyncTaskEvent(event_data) {
- return new AsyncTaskEvent(event_data);
+function MakeAsyncTaskEvent(type, id, name) {
+ return new AsyncTaskEvent(type, id, name);
}
-function AsyncTaskEvent(event_data) {
- this.type_ = event_data.type;
- this.name_ = event_data.name;
- this.id_ = event_data.id;
+function AsyncTaskEvent(type, id, name) {
+ this.type_ = type;
+ this.id_ = id;
+ this.name_ = name;
}
« no previous file with comments | « src/debug/debug.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698