Hey Adam,

I think that this is not even consistent; as you point out, some builtins
are strict (the js ones), while others are sloppy. I think this is for
historical reasons, because initially everything was sloppy, and then we
migrated some of the js files to strict mode. But so far no one payed
attention to the non-js builtin function maps. Feel free to fix that.

-- Benedikt

Adam Klein <[email protected]> schrieb am Di., 24. Mai 2016, 00:33:

> While looking at a test262 bug (
> https://bugs.chromium.org/p/v8/issues/detail?id=4925) I ran into an old
> problem: it seems that our builtin functions are always sloppy mode, which
> means that they inappropriately have 'caller' and 'arguments' own
> properties (https://bugs.chromium.org/p/chromium/issues/detail?id=516666).
>
> Does anyone have some background on this? How tricky would it be to make
> our builtins "strict"? It seems unfortunate that code written in C++
> reflects as sloppy (Array.prototype.push, for example) while code written
> in JS is strict (Map.prototype.get, e.g.).
>
> - Adam
>
> --
> --
> v8-dev mailing list
> [email protected]
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
v8-dev mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to