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

Unified Diff: corelib/src/implementation/options.dart

Issue 9159013: Add script attribute to Options class, providing the name of the running script. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 11 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 | « no previous file | corelib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: corelib/src/implementation/options.dart
diff --git a/corelib/src/implementation/options.dart b/corelib/src/implementation/options.dart
index 2d81762d01a5ebe6fa506da645a9cc94206109ac..b1f32ea13985e1d415cc3e51e8487eaa2cca6c55 100644
--- a/corelib/src/implementation/options.dart
+++ b/corelib/src/implementation/options.dart
@@ -11,8 +11,15 @@ class RuntimeOptions implements Options {
return _arguments;
}
+ String get script() {
+ return _nativeScript;
+ }
+
List<String> _arguments = null;
- // This arguments singleton is overriden by the embedder if applicable.
+ // This arguments singleton is written to by the embedder if applicable.
static List<String> _nativeArguments = const [];
+
+ // This script singleton is written to by the embedder if applicable.
+ static String _nativeScript = null;
}
« no previous file with comments | « no previous file | corelib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698