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

Unified Diff: test/mjsunit/regress/regress-1178598.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/property-load-across-eval.js ('k') | test/mjsunit/regress/regress-1182832.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-1178598.js
diff --git a/test/mjsunit/regress/regress-1178598.js b/test/mjsunit/regress/regress-1178598.js
index 2056a9d8da9585a9639942156f3515653076368d..cca5016d6b74b090f1edf425e025c7b79fb8029d 100644
--- a/test/mjsunit/regress/regress-1178598.js
+++ b/test/mjsunit/regress/regress-1178598.js
@@ -25,27 +25,8 @@
// (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: --legacy-const
-
// Regression test cases for issue 1178598.
-// Make sure const-initialization doesn't conflict
-// with heap-allocated locals for catch variables.
-var value = (function(){
- try { } catch(e) {
- // Force the 'e' variable to be heap-allocated
- // by capturing it in a function closure.
- (function() { e; });
- }
- // Make sure the two definitions of 'e' do
- // not conflict in any way.
- eval("const e=1");
- return e;
-})();
-
-assertEquals(1, value);
-
-
// Make sure that catch variables can be accessed using eval.
var value = (function() {
« no previous file with comments | « test/mjsunit/property-load-across-eval.js ('k') | test/mjsunit/regress/regress-1182832.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698