Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index ad531d7d3ef8ff05aa302fb735af56e58fe5b4bb..1180fa035827169865af05ccdf2215c3bc073a28 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -2194,12 +2194,13 @@ MaybeLocal<Function> ScriptCompiler::CompileFunctionInContext( |
column_offset = static_cast<int>(source->resource_column_offset->Value()); |
} |
i::Handle<i::JSFunction> fun; |
+ // TODO(jwolfe): restrict parameters_end_pos? |
has_pending_exception = |
!i::Compiler::GetFunctionFromEval( |
source_string, outer_info, context, i::SLOPPY, |
- i::ONLY_SINGLE_FUNCTION_LITERAL, eval_scope_position, eval_position, |
- line_offset, column_offset - scope_position, name_obj, |
- source->resource_options) |
+ i::ONLY_SINGLE_FUNCTION_LITERAL, i::kNoSourcePosition, |
+ eval_scope_position, eval_position, line_offset, |
+ column_offset - scope_position, name_obj, source->resource_options) |
.ToHandle(&fun); |
if (has_pending_exception) { |
isolate->ReportPendingMessages(); |