Figuring out the behavior of WindowProxy in the face of non-configurable properties

Mark Miller erights at
Thu Dec 4 17:19:30 PST 2014

On Thu, Dec 4, 2014 at 4:49 PM, Boris Zbarsky <bzbarsky at> wrote:
> On 12/4/14, 4:45 PM, Mark Miller wrote:
>> On Thu, Dec 4, 2014 at 4:32 PM, Boris Zbarsky <bzbarsky at> wrote:
>>> Sure, for a scope chain.  Testcase at
>> That page demands a client certificate. Is that intentional?
> Er, sorry.
> should work for everyone.
> -Boris

Here's an unexpected weirdness, probably not deeply related. Change
your first helper page to

var someName = "OLD WINDOW";
var evil = eval;
function f() {
  return someName;
function g() {
  return (1,evil)("3");

On FF and Safari, I get 3 as expected. On Chrome, I get on my console:

    Uncaught EvalError: The "this" value passed to eval must be the
global object from which eval originated

Especially weird, because this code doesn't pass any this to the
renamed eval. I don't know what this means.


More information about the es-discuss mailing list