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

Side by Side Diff: test/cctest/test-debug.cc

Issue 1007783002: Remove --harmony-scoping flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CR feedback Created 5 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 unified diff | Download patch
« no previous file with comments | « test/cctest/compiler/test-run-variables.cc ('k') | test/cctest/test-decls.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 7628 matching lines...) Expand 10 before | Expand all | Expand 10 after
7639 7639
7640 ExpectInt32("allScopes[0].scopeObject().value_.y", 2); 7640 ExpectInt32("allScopes[0].scopeObject().value_.y", 2);
7641 7641
7642 CompileRun("allScopes[0].setVariableValue('x', 5);"); 7642 CompileRun("allScopes[0].setVariableValue('x', 5);");
7643 CompileRun("allScopes[0].setVariableValue('y', 6);"); 7643 CompileRun("allScopes[0].setVariableValue('y', 6);");
7644 ExpectInt32("frame.evaluate('x + y').value_", 11); 7644 ExpectInt32("frame.evaluate('x + y').value_", 11);
7645 } 7645 }
7646 7646
7647 7647
7648 TEST(DebugBreakInLexicalScopes) { 7648 TEST(DebugBreakInLexicalScopes) {
7649 i::FLAG_harmony_scoping = true;
7650 i::FLAG_allow_natives_syntax = true; 7649 i::FLAG_allow_natives_syntax = true;
7651 7650
7652 DebugLocalContext env; 7651 DebugLocalContext env;
7653 v8::Isolate* isolate = env->GetIsolate(); 7652 v8::Isolate* isolate = env->GetIsolate();
7654 v8::HandleScope scope(isolate); 7653 v8::HandleScope scope(isolate);
7655 v8::Debug::SetDebugEventListener(DebugHarmonyScopingListener); 7654 v8::Debug::SetDebugEventListener(DebugHarmonyScopingListener);
7656 7655
7657 CompileRun( 7656 CompileRun(
7658 "'use strict'; \n" 7657 "'use strict'; \n"
7659 "let x = 1; \n"); 7658 "let x = 1; \n");
7660 ExpectInt32( 7659 ExpectInt32(
7661 "'use strict'; \n" 7660 "'use strict'; \n"
7662 "let y = 2; \n" 7661 "let y = 2; \n"
7663 "debugger; \n" 7662 "debugger; \n"
7664 "x * y", 7663 "x * y",
7665 30); 7664 30);
7666 ExpectInt32( 7665 ExpectInt32(
7667 "x = 1; y = 2; \n" 7666 "x = 1; y = 2; \n"
7668 "debugger;" 7667 "debugger;"
7669 "x * y", 7668 "x * y",
7670 30); 7669 30);
7671 } 7670 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-variables.cc ('k') | test/cctest/test-decls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698