Skip to content

Commit

Permalink
Fix context.options.context
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed May 14, 2021
1 parent 136bd28 commit 818d0d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/src/importer/node/implementation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ class NodeImporter {
}

/// Returns the [RenderContext] in which to invoke importers.
RenderContext _renderContext(bool fromImport) => RenderContext(
options: _options as RenderContextOptions, fromImport: fromImport);
RenderContext _renderContext(bool fromImport) {
var context = RenderContext(
options: _options as RenderContextOptions, fromImport: fromImport);
context.options.context = context;
return context;
}
}
1 change: 1 addition & 0 deletions lib/src/node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ List<AsyncCallable> _parseFunctions(RenderOptions options, DateTime start,
}

var context = RenderContext(options: _contextOptions(options, start));
context.options.context = context;

var fiber = options.fiber;
if (fiber != null) {
Expand Down

0 comments on commit 818d0d1

Please sign in to comment.