Skip to content

Commit

Permalink
[vm/bytecode] Take environment defines into account when generating b…
Browse files Browse the repository at this point in the history
…ytecode

Fixes corelib_2/from_environment_const_type_test in bytecode mode.

Change-Id: Ie712724a3ef807c446080ee4cc04d4287ac470e9
Reviewed-on: https://dart-review.googlesource.com/71889
Reviewed-by: Régis Crelier <regis@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
  • Loading branch information
alexmarkov authored and commit-bot@chromium.org committed Aug 29, 2018
1 parent cc62869 commit c6d786a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/vm/lib/kernel_front_end.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ Future<Component> compileToKernel(Uri source, CompilerOptions options,
if (genBytecode && !errorDetector.hasCompilationErrors && component != null) {
await runWithFrontEndCompilerContext(source, options, component, () {
generateBytecode(component,
strongMode: options.strongMode, dropAST: dropAST);
strongMode: options.strongMode,
dropAST: dropAST,
environmentDefines: environmentDefines);
});
}

Expand Down

0 comments on commit c6d786a

Please sign in to comment.