| Index: test/mjsunit/regress/regress-186.js
|
| diff --git a/test/mjsunit/regress/regress-186.js b/test/mjsunit/regress/regress-186.js
|
| index e10ed8f25d4f67016fe3bd94d12e78c736eb6824..0c2dbc696d0b6e0ec05d8b042d99bb1d93f1d33d 100644
|
| --- a/test/mjsunit/regress/regress-186.js
|
| +++ b/test/mjsunit/regress/regress-186.js
|
| @@ -25,8 +25,6 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Flags: --legacy-const
|
| -
|
| // Make sure that eval can introduce a local variable called __proto__.
|
| // See http://code.google.com/p/v8/issues/detail?id=186
|
|
|
| @@ -49,15 +47,6 @@ function testLocal() {
|
| assertEquals(o, eval("__proto__"));
|
| }
|
|
|
| -function testConstLocal() {
|
| - // Add const property called __proto__ to the extension object.
|
| - eval("const __proto__ = o");
|
| - // Check that the extension object's prototype did not change.
|
| - eval("var x = 27");
|
| - assertFalse(setterCalled, "prototype of extension object changed");
|
| - assertEquals(o, eval("__proto__"));
|
| -}
|
| -
|
| function testGlobal() {
|
| // Assign to the global __proto__ property.
|
| eval("__proto__ = o");
|
| @@ -69,5 +58,4 @@ function testGlobal() {
|
| }
|
|
|
| runTest(testLocal);
|
| -runTest(testConstLocal);
|
| runTest(testGlobal);
|
|
|