Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Unified Diff: test/mjsunit/regress/regress-global-freeze-const.js

Issue 379893002: Clean up and update const / var (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/regress/regress-global-freeze-const.js
diff --git a/test/mjsunit/regress/regress-global-freeze-const.js b/test/mjsunit/regress/regress-global-freeze-const.js
index 0b9e1f3ebd4bb79c00db30a7b33e450e5bfe68a0..c5ac98667fefbb3d065675cc007b6aed4cd6e2f7 100644
--- a/test/mjsunit/regress/regress-global-freeze-const.js
+++ b/test/mjsunit/regress/regress-global-freeze-const.js
@@ -2,6 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-__defineSetter__('x', function() { });
+Object.defineProperty(this, 'x', {set: function() { }});
Object.freeze(this);
-eval('const x = 1');
+eval('"use strict"; x = 20;');
rossberg 2014/07/11 12:54:49 Removing the const makes the name of this test obs
Toon Verwaest 2014/07/14 07:39:56 Changed the name of the file to indicate its meani
rossberg 2014/07/14 12:04:22 Hm, I think it really was supposed to test const's

Powered by Google App Engine
This is Rietveld 408576698