| Index: src/v8natives.js
|
| diff --git a/src/v8natives.js b/src/v8natives.js
|
| index 88525f6b44f01de4e114175bb6253d0685deec44..29eb0f397ae6389161e921d9abdcaa5cc89b1c8c 100644
|
| --- a/src/v8natives.js
|
| +++ b/src/v8natives.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2011 the V8 project authors. All rights reserved.
|
| +// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -1428,9 +1428,7 @@ function FunctionSourceString(func) {
|
| }
|
| }
|
|
|
| - var name = %FunctionNameShouldPrintAsAnonymous(func)
|
| - ? 'anonymous'
|
| - : %FunctionGetName(func);
|
| + var name = %FunctionGetName(func);
|
| return 'function ' + name + source;
|
| }
|
|
|
| @@ -1525,7 +1523,7 @@ function NewFunction(arg1) { // length == 1
|
| // The call to SetNewFunctionAttributes will ensure the prototype
|
| // property of the resulting function is enumerable (ECMA262, 15.3.5.2).
|
| var f = %CompileString(source)();
|
| - %FunctionMarkNameShouldPrintAsAnonymous(f);
|
| + %FunctionSetName(f, "anonymous");
|
| return %SetNewFunctionAttributes(f);
|
| }
|
|
|
|
|