> Such own properties also must not be created for function objects defined 
> using an ArrowFunction, MethodDefinition, GeneratorDeclaration, 
> GeneratorExpression,ClassDeclaration, or ClassExpression regardless of 
> whether the definition is contained in strict mode code. 

My reading of this is, for strict and sloppy modes, you get the same behaviour 
— no accessor, poisoned or otherwise.

Unless you mean, reuse the same map for both strict and sloppy variants of 
these, which could work. I’m just not positive if strict variants add anything 
extra

> On Mar 24, 2015, at 7:38 AM, Erik Arvidsson <a...@chromium.org> wrote:
> 
> I thought the idea was to remove "arguments" and "caller" from all
> strict functions?
> 
> On Tue, Mar 24, 2015 at 12:35 PM,  <caitpotte...@gmail.com> wrote:
>> On 2015/03/24 11:30:50, arv wrote:
>>> 
>>> It is not clear why we need 4 new maps? Can you list the different cases
>>> of
>>> functions and how their maps differ?
>> 
>> 
>> SLOPPY_FUNCTION_MAP and SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP install
>> caller/arguments accessors as own properties, which is forbidden. The strict
>> variants of these install the poisoned accessors as own properties, which is
>> also forbidden. For legacy syntactic forms, this behaviour is still needed
>> ---
>> so it seems that you need the extra maps.
>> 
>> If the global maps weren't set up, and the accessors were added during
>> function
>> instantiation, you'd still end up with new maps implicitly.
>> 
>> 
>> https://codereview.chromium.org/1027283004/
>> 
>> --
>> --
>> v8-dev mailing list
>> v8-dev@googlegroups.com
>> http://groups.google.com/group/v8-dev
>> ---You received this message because you are subscribed to the Google Groups
>> "v8-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to v8-dev+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> -- 
> erik
> 
> -- 
> -- 
> v8-dev mailing list
> v8-dev@googlegroups.com
> http://groups.google.com/group/v8-dev
> --- 
> You received this message because you are subscribed to the Google Groups 
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to v8-dev+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to