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

Unified Diff: lib/runtime/run.js

Issue 2249233002: fix #626, add AMD module format and make it default (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: merged Created 4 years, 4 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
« no previous file with comments | « lib/runtime/dart_library.js ('k') | lib/src/compiler/code_generator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/run.js
diff --git a/lib/runtime/run.js b/lib/runtime/run.js
deleted file mode 100644
index f1cbaa9a1ef7229d024d5ac5ddc6aea25c901d7e..0000000000000000000000000000000000000000
--- a/lib/runtime/run.js
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) 2015, 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.
-
-var fs = require('fs');
-var vm = require('vm');
-
-function __load(path) {
- var data = fs.readFileSync(path);
- var script = vm.createScript(data.toString(), path);
- script.runInThisContext();
-}
-
-var args = process.argv.slice(2);
-var argc = args.length;
-
-for (var i = 0; i < argc-1; ++i) {
- __load(args[i]);
-}
-
-var main = vm.createScript(args[argc-1] + '.main()', 'main');
-main.runInThisContext();
« no previous file with comments | « lib/runtime/dart_library.js ('k') | lib/src/compiler/code_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698