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

Unified Diff: test/mjsunit/regress/regress-crbug-685965.js

Issue 2660123002: ThinStrings: fix CodeStubAssembler::SubString (Closed)
Patch Set: Created 3 years, 11 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 | « src/code-stub-assembler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-685965.js
diff --git a/test/mjsunit/regress/regress-crbug-685965.js b/test/mjsunit/regress/regress-crbug-685965.js
new file mode 100644
index 0000000000000000000000000000000000000000..1f2c6c8536c982b02a08ba05464baa5357320335
--- /dev/null
+++ b/test/mjsunit/regress/regress-crbug-685965.js
@@ -0,0 +1,13 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function __f_0(a) {
+ var __v_3 = a + undefined;
+ var __v_0 = __v_3.substring(0, 20);
+ var __v_1 = {};
+ __v_1[__v_3];
+ return __v_0;
+}
+__v_4 = __f_0( "abcdefghijklmnopqrstuvwxyz");
+assertEquals("bcdefg", __v_4.substring(7, 1));
« no previous file with comments | « src/code-stub-assembler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698