diff options
Diffstat (limited to 'deps/v8/src/parser.cc')
-rw-r--r-- | deps/v8/src/parser.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/src/parser.cc b/deps/v8/src/parser.cc index e215890639..dd5f9bd0d0 100644 --- a/deps/v8/src/parser.cc +++ b/deps/v8/src/parser.cc @@ -36,6 +36,7 @@ #include "parser.h" #include "platform.h" #include "runtime.h" +#include "scopeinfo.h" #include "scopes.h" #include "string-stream.h" @@ -1968,8 +1969,9 @@ Statement* Parser::ParseNativeDeclaration(bool* ok) { const int literals = fun->NumberOfLiterals(); Handle<Code> code = Handle<Code>(fun->shared()->code()); Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub()); - Handle<SharedFunctionInfo> shared = Factory::NewSharedFunctionInfo( - name, literals, code, Handle<Object>(fun->shared()->scope_info())); + Handle<SharedFunctionInfo> shared = + Factory::NewSharedFunctionInfo(name, literals, code, + Handle<SerializedScopeInfo>(fun->shared()->scope_info())); shared->set_construct_stub(*construct_stub); // Copy the function data to the shared function info. |