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

Unified Diff: src/debug/mirrors.js

Issue 2366863002: Mirror API for IsAsyncFunction (Closed)
Patch Set: Created 4 years, 3 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 | « no previous file | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/mirrors.js
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
index 165e1724492f106896475d3153227c9a1a4bf748..b2510151d38c2caf87fba6c03b1eea623685981d 100644
--- a/src/debug/mirrors.js
+++ b/src/debug/mirrors.js
@@ -1041,6 +1041,11 @@ FunctionMirror.prototype.context = function() {
};
+FunctionMirror.prototype.isAsyncFunction = function() {
+ return %FunctionIsAsyncFunction(this.value_);
+}
+
+
/**
* Mirror object for unresolved functions.
* @param {string} value The name for the unresolved function reflected by this
« no previous file with comments | « no previous file | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698