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); |