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

Unified Diff: src/js/v8natives.js

Issue 1413723008: Revert of [es6] Fix Function and GeneratorFunction built-ins subclassing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@subclass
Patch Set: Created 5 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
« no previous file with comments | « src/js/generator.js ('k') | src/objects-printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/v8natives.js
diff --git a/src/js/v8natives.js b/src/js/v8natives.js
index d830ba5aca6c5f343ed4ee9e6c4c009e475b643b..3c1e175a9e7f4f1bd8b23678b85c6722ea1d9f9a 100644
--- a/src/js/v8natives.js
+++ b/src/js/v8natives.js
@@ -1797,11 +1797,9 @@
var global_proxy = %GlobalProxy(FunctionConstructor);
// Compile the string in the constructor and not a helper so that errors
// appear to come from here.
- var func = %_CallFunction(global_proxy, %CompileString(source, true));
- // Set name-should-print-as-anonymous flag on the ShareFunctionInfo and
- // ensure that |func| uses correct initial map from |new.target| if
- // it's available.
- return %CompleteFunctionConstruction(func, GlobalFunction, new.target);
+ var f = %_CallFunction(global_proxy, %CompileString(source, true));
+ %FunctionMarkNameShouldPrintAsAnonymous(f);
+ return f;
}
« no previous file with comments | « src/js/generator.js ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698