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

Unified Diff: test/mjsunit/regress/regress-freeze-setter.js

Issue 379893002: Clean up and update const / var (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment 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
« no previous file with comments | « test/mjsunit/regress/regress-1213575.js ('k') | test/mjsunit/regress/regress-global-freeze-const.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-freeze-setter.js
diff --git a/test/mjsunit/regress/regress-global-freeze-const.js b/test/mjsunit/regress/regress-freeze-setter.js
similarity index 68%
rename from test/mjsunit/regress/regress-global-freeze-const.js
rename to test/mjsunit/regress/regress-freeze-setter.js
index 0b9e1f3ebd4bb79c00db30a7b33e450e5bfe68a0..c5ac98667fefbb3d065675cc007b6aed4cd6e2f7 100644
--- a/test/mjsunit/regress/regress-global-freeze-const.js
+++ b/test/mjsunit/regress/regress-freeze-setter.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;');
« no previous file with comments | « test/mjsunit/regress/regress-1213575.js ('k') | test/mjsunit/regress/regress-global-freeze-const.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698