| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 46d4d37eb8c8b0ee586c970fb8c6971c09a233f9..1e7e4764ff27e77eda00c69f591345d4b91e6af5 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -293,11 +293,10 @@ Handle<Context> Factory::NewGlobalContext() {
|
| }
|
|
|
|
|
| -Handle<Context> Factory::NewModuleContext(Handle<Context> previous,
|
| - Handle<ScopeInfo> scope_info) {
|
| +Handle<Context> Factory::NewModuleContext(Handle<ScopeInfo> scope_info) {
|
| CALL_HEAP_FUNCTION(
|
| isolate(),
|
| - isolate()->heap()->AllocateModuleContext(*previous, *scope_info),
|
| + isolate()->heap()->AllocateModuleContext(*scope_info),
|
| Context);
|
| }
|
|
|
| @@ -976,10 +975,11 @@ Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor,
|
| }
|
|
|
|
|
| -Handle<JSModule> Factory::NewJSModule() {
|
| +Handle<JSModule> Factory::NewJSModule(Handle<Context> context,
|
| + Handle<ScopeInfo> scope_info) {
|
| CALL_HEAP_FUNCTION(
|
| isolate(),
|
| - isolate()->heap()->AllocateJSModule(), JSModule);
|
| + isolate()->heap()->AllocateJSModule(*context, *scope_info), JSModule);
|
| }
|
|
|
|
|
|
|