Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index e2f71479407bccbd139518236500017f7ae0f121..ebd608b94428efb10863d67eb8bbbbc299fab355 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -84,6 +84,11 @@ class Compiler : public AllStatic { |
Handle<Object> script_name = Handle<Object>(), |
ScriptOriginOptions options = ScriptOriginOptions()); |
+ // Create a (bound) function for a String source within a context for eval. |
+ MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromString( |
+ Handle<Context> context, Handle<String> source, |
+ ParseRestriction restriction); |
+ |
// Create a shared function info object for a String source within a context. |
static Handle<SharedFunctionInfo> GetSharedFunctionInfoForScript( |
Handle<String> source, Handle<Object> script_name, int line_offset, |