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;'); |