Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1379)

Unified Diff: dart/site/try/poi/patcher.js

Issue 636903002: Compute an incremental patch to JavaScript code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use Namer.elementAccess (to address Johnni's comment) Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: dart/site/try/poi/patcher.js
diff --git a/dart/site/try/poi/patcher.js b/dart/site/try/poi/patcher.js
new file mode 100644
index 0000000000000000000000000000000000000000..d6f0c4bdbf9cb9ec5095d25eba73ee515328e91a
--- /dev/null
+++ b/dart/site/try/poi/patcher.js
@@ -0,0 +1,15 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+;(function(orig) {
+ function patcher(main, args) {
+ this.$dart_patch && this.$dart_unsafe_eval.patch($dart_patch);
+ if (orig) {
+ return orig(main, args);
+ } else {
+ return main(args);
+ }
+ }
+ this.dartMainRunner = patcher;
+})(this.dartMainRunner);
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/js_emitter/old_emitter/emitter.dart ('k') | dart/site/try/poi/poi.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698