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

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

Issue 19569003: Do not materialize context-allocated values for debug-evaluate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: improved test Created 7 years, 5 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/debug-evaluate-closure.js ('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-259300.js
diff --git a/test/mjsunit/regress/regress-frame-details-null-receiver.js b/test/mjsunit/regress/regress-crbug-259300.js
similarity index 85%
copy from test/mjsunit/regress/regress-frame-details-null-receiver.js
copy to test/mjsunit/regress/regress-crbug-259300.js
index d15ed4d00ae774ad01406855fc42cb8c1dfbcc07..c57b0e6f917028f790609482c7d54269b0da615f 100644
--- a/test/mjsunit/regress/regress-frame-details-null-receiver.js
+++ b/test/mjsunit/regress/regress-crbug-259300.js
@@ -25,28 +25,25 @@
// (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: --expose-debug-as debug --allow-natives-syntax
+// Flags: --expose-debug-as debug
Debug = debug.Debug;
var listened = false;
+var recursion_depth = 0;
function listener(event, exec_state, event_data, data) {
- if (event == Debug.DebugEvent.Exception) {
+ if (event == Debug.DebugEvent.Break) {
+ recursion_depth++;
+ var disable_break = (recursion_depth > 2);
for (var i = 0; i < exec_state.frameCount(); i++) {
- print(exec_state.frame(i).receiver());
- print(exec_state.frame(i).func().name());
+ exec_state.frame(i).evaluate("debugger", disable_break);
}
}
listened = true;
}
Debug.setListener(listener);
-Debug.setBreakOnException();
-
-assertThrows(function() { delete null['foo']; });
-
-Debug.clearBreakOnException();
+eval("debugger");
Debug.setListener(null);
-
assertTrue(listened);
« no previous file with comments | « test/mjsunit/debug-evaluate-closure.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698