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

Side by Side Diff: test/mjsunit/debug-exceptions.js

Issue 2203803002: [debug] Don't notify listener of exceptions internal to a desugaring. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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 | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --expose-debug-as debug 5 // Flags: --expose-debug-as debug
6 6
7 7
8 Debug = debug.Debug 8 Debug = debug.Debug
9 9
10 let error = false; 10 let error = false;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 assertCaught(() => { 61 assertCaught(() => {
62 try { 62 try {
63 for (var a of [1, 2, 3]) { 63 for (var a of [1, 2, 3]) {
64 try {throw a} finally {} 64 try {throw a} finally {}
65 } 65 }
66 } catch(_) {} 66 } catch(_) {}
67 }); 67 });
68 68
69 69
70 // Check that an internal exception in our yield* desugaring is not observable.
71 {
72 uncaught = null;
73
74 let iter = {
75 next() {return {value:42, done:false}},
76 throw() {return {done:true}}
77 };
78 let iterable = {[Symbol.iterator]() {return iter}};
79 function* f() { yield* iterable }
80
81 let g = f();
82 g.next();
83 assertEquals({value: undefined, done: true}, g.throw());
84 assertNull(uncaught); // No exception event was generated.
85 }
86
87
70 assertFalse(error); 88 assertFalse(error);
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698