| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 100d100d3518f624c9fb643dfc1920f1e6ef8015..c4ef8eb6509e6f65231edd3c5841ae4c9dcb51aa 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -681,6 +681,7 @@ Handle<SharedFunctionInfo> Compiler::CompileEval(Handle<String> source,
|
| Handle<Context> context,
|
| bool is_global,
|
| LanguageMode language_mode,
|
| + ParseRestriction restriction,
|
| int scope_position) {
|
| Isolate* isolate = source->GetIsolate();
|
| int source_length = source->length();
|
| @@ -707,6 +708,7 @@ Handle<SharedFunctionInfo> Compiler::CompileEval(Handle<String> source,
|
| info.MarkAsEval();
|
| if (is_global) info.MarkAsGlobal();
|
| info.SetLanguageMode(language_mode);
|
| + info.SetParseRestriction(restriction);
|
| info.SetContext(context);
|
| result = MakeFunctionInfo(&info);
|
| if (!result.is_null()) {
|
|
|