Issue 138: globally deleted function erroneously hides function in global with statement http://code.google.com/p/v8/issues/detail?id=138
Comment #1 by [EMAIL PROTECTED]: > 1. Code should execute in a sequential top down order. Sort of. Function declarations are required to be processed *before* any code is evaluated. It's not the order of the declarations that keeps them from being deleted, it is that variables declared in global or function execution contexts have the DontDelete property. > 2. Within a with statement, properties can be added to the external scope. But the function declarations there are not strictly legal according to the spec. The body of a with statement is a statement, and function declarations are not statements or parts of statements (they are "source elements" appearing at the toplevel or in function bodies). Any behavior we have is outside ECMA-262. The issue seems to be that the functions f1 and f2 do not have the DontDelete property. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
