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

Unified Diff: src/v8natives.js

Issue 12687002: Restore Function()'s expected string representation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | test/mjsunit/regress/regress-2470.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index 2770e4366f7030bb143f01256021bf38a3660873..cc2e1c5e4dc7193f1dc3fe526a73786a0a97cfd1 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -1710,7 +1710,7 @@ function NewFunction(arg1) { // length == 1
p += '\n/' + '**/';
}
var body = (n > 0) ? ToString(%_Arguments(n - 1)) : '';
- var source = '(function(\n' + p + '\n) {\n' + body + '\n})';
+ var source = '(function(' + p + ') {\n' + body + '\n})';
// The call to SetNewFunctionAttributes will ensure the prototype
// property of the resulting function is enumerable (ECMA262, 15.3.5.2).
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-2470.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698