Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index b4c34ef76922cf8b997b6ecd72f34c88d85e3587..cd323c1d4e1bb615bb03d527957b3263f8cc0768 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -2804,6 +2804,14 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsGenerator) { |
} |
+RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionIsArrow) { |
+ SealHandleScope shs(isolate); |
+ ASSERT(args.length() == 1); |
+ CONVERT_ARG_CHECKED(JSFunction, f, 0); |
+ return isolate->heap()->ToBoolean(f->shared()->is_arrow()); |
+} |
+ |
+ |
RUNTIME_FUNCTION(MaybeObject*, Runtime_FunctionRemovePrototype) { |
SealHandleScope shs(isolate); |
ASSERT(args.length() == 1); |