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

Unified Diff: src/js/macros.py

Issue 2109223002: [intl] Clean up function name handling in AddBoundMethod (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix build, I think Created 4 years, 6 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/js/i18n.js ('k') | test/test262/test262.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/macros.py
diff --git a/src/js/macros.py b/src/js/macros.py
index c6ed019dd645d4193ce0786d0a187432c6bf27ec..b534db2ef3e462be2e3d67948d5880b279c2adf6 100644
--- a/src/js/macros.py
+++ b/src/js/macros.py
@@ -131,6 +131,9 @@ macro HAS_DEFINED_PRIVATE(obj, sym) = (!IS_UNDEFINED(obj[sym]));
macro GET_PRIVATE(obj, sym) = (obj[sym]);
macro SET_PRIVATE(obj, sym, val) = (obj[sym] = val);
+# To avoid ES2015 Function name inference.
+macro ANONYMOUS_FUNCTION(fn) = (0, (fn));
+
# Constants. The compiler constant folds them.
define INFINITY = (1/0);
define UNDEFINED = (void 0);
« no previous file with comments | « src/js/i18n.js ('k') | test/test262/test262.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698