Index: dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart |
diff --git a/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart b/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart |
index b8d536b1a6ac65cbe68937058dbe0af5f695b77c..fc614d251eb11e96f0a2670979ae8c55ad4f7e37 100644 |
--- a/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart |
+++ b/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart |
@@ -146,12 +146,13 @@ class IncrementalCompiler { |
String allUpdates() { |
jsAst.Node updates = jsAst.js.escapedString(_updates.join("")); |
+ JavaScriptBackend backend = _compiler.backend; |
+ |
jsAst.FunctionDeclaration mainRunner = jsAst.js.statement(r""" |
function dartMainRunner(main, args) { |
- $dart_unsafe_eval.patch(#); |
+ #helper.patch(#updates); |
return main(args); |
-}""", updates); |
- |
+}""", {'updates': updates, 'helper': backend.namer.accessIncrementalHelper}); |
jsAst.Printer printer = new jsAst.Printer(_compiler, null); |
printer.blockOutWithoutBraces(mainRunner); |