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

Unified Diff: runtime/vm/object.cc

Issue 1062523002: Use evaluate:source as the uri of eval scripts instead of the empty string, so e.g., package:stack… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 826d2cff8ece4d2cc50e5d2617ab106b2942d24b..c1b31428464d8f71ace98f290d306ceaae8d3b8f 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -2817,7 +2817,9 @@ static RawFunction* EvaluateHelper(const Class& cls,
const String& func_src =
String::Handle(BuildClosureSource(param_names, expr));
Script& script = Script::Handle();
- script = Script::New(Symbols::Empty(), func_src, RawScript::kSourceTag);
+ script = Script::New(Symbols::EvalSourceUri(),
+ func_src,
+ RawScript::kSourceTag);
// In order to tokenize the source, we need to get the key to mangle
// private names from the library from which the class originates.
const Library& lib = Library::Handle(cls.library());
« no previous file with comments | « no previous file | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698