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

Unified Diff: src/generator.js

Issue 701093003: Correctly compute line numbers in functions from the function constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 1 month 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: src/generator.js
diff --git a/src/generator.js b/src/generator.js
index b35744a094f29ef0acd8baf3180bdfb7234a9084..59124534c4dee4ef085e4368044e4ec47f3a48da 100644
--- a/src/generator.js
+++ b/src/generator.js
@@ -49,7 +49,6 @@ function GeneratorFunctionConstructor(arg1) { // length == 1
// Compile the string in the constructor and not a helper so that errors
// appear to come from here.
var f = %_CallFunction(global_proxy, %CompileString(source, true));
- %FunctionMarkNameShouldPrintAsAnonymous(f);
return f;
}

Powered by Google App Engine
This is Rietveld 408576698