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

Unified Diff: test/mjsunit/compiler/regress-const.js

Issue 1819123002: Remove support for legacy const, part 1 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased, deleted one more file Created 4 years, 9 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/compiler/regress-96989.js ('k') | test/mjsunit/const.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-const.js
diff --git a/test/mjsunit/compiler/regress-const.js b/test/mjsunit/compiler/regress-const.js
index 89b559c3e0574ac8f45874023cc541d99ecceebb..5099c2f6295ebe45153c3b167940930d8a3e6bd5 100644
--- a/test/mjsunit/compiler/regress-const.js
+++ b/test/mjsunit/compiler/regress-const.js
@@ -25,7 +25,7 @@
// (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: --allow-natives-syntax --legacy-const
+// Flags: --allow-natives-syntax
// Test const initialization and assignments.
function f() {
@@ -38,7 +38,6 @@ function f() {
function g() {
const x = 42;
- x += 1;
return x;
}
@@ -50,7 +49,7 @@ for (var i = 0; i < 5; i++) {
%OptimizeFunctionOnNextCall(f);
%OptimizeFunctionOnNextCall(g);
-assertEquals(42, f());
+assertEquals(1, f());
assertEquals(42, g());
« no previous file with comments | « test/mjsunit/compiler/regress-96989.js ('k') | test/mjsunit/const.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698