New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 627036 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue v8:5201
Owner: ----
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Redefining eval in strict mode should Throw

Reported by legend.r...@gmail.com, Jul 11 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36

Steps to reproduce the problem:
(() => { 
  'use strict';
  function a({ eval = false } = {}) {}
})();

What is the expected behavior?
This should Throw that eval cannot be redefined in "strict mode" 

What went wrong?
This throws - 
function a() { 'use strict'; let eval = "x"; } 

But, when using Non-Simple Parameter list, it doesn't detect the binding "eval".

Did this work before? No 

Chrome version: 51.0.2704.106  Channel: stable
OS Version: OS X 10.11.5
Flash Version:
 
Components: -Blink Blink>JavaScript
Cc: littledan@chromium.org adamk@chromium.org
Components: -Blink>JavaScript Blink>JavaScript>Language
Status: Available (was: Unconfirmed)
Mergedinto: v8:5201
Status: Duplicate (was: Available)

Sign in to add a comment