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

Unified Diff: test/mjsunit/regress/regress-2296.js

Issue 10837308: Add input check to %DebugSetScriptSource. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime.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-2296.js
diff --git a/test/mjsunit/regress/regress-iteration-order.js b/test/mjsunit/regress/regress-2296.js
similarity index 88%
copy from test/mjsunit/regress/regress-iteration-order.js
copy to test/mjsunit/regress/regress-2296.js
index 76f5c3ffcaf5d71ea5a579425e477c2607a90e1c..c00f14f172a0cb099d2ef411fe25bfffbab7e559 100644
--- a/test/mjsunit/regress/regress-iteration-order.js
+++ b/test/mjsunit/regress/regress-2296.js
@@ -25,18 +25,16 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-var x = {a: 1, b: 2, c: 3};
+// Flags: --expose-debug-as debug
-x.__proto__ = {};
+Debug = debug.Debug
-delete x.b;
+function listener(event, exec_state, event_data, data) {
+ event_data.script().setSource(1);
+};
-x.d = 4;
+Debug.setListener(listener);
-s = "";
+eval('0');
-for (key in x) {
- s += x[key];
-}
-
-assertEquals("134", s);
+Debug.setListener(null);
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698