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

Side by Side Diff: test/mjsunit/error-tostring-omit.js

Issue 2126453002: [intrinsic] Drop the %_ValueOf intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix noi18n build (narf) Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 24 matching lines...) Expand all
35 "tempus luctus. Nullam condimentum aliquam odio, at dignissim" + 35 "tempus luctus. Nullam condimentum aliquam odio, at dignissim" +
36 "augue tincidunt in. Nam mattis vitae mauris eget dictum." + 36 "augue tincidunt in. Nam mattis vitae mauris eget dictum." +
37 "Nam accumsan dignissim turpis a turpis duis."; 37 "Nam accumsan dignissim turpis a turpis duis.";
38 } 38 }
39 39
40 assertTrue(veryLongString().length > 256); 40 assertTrue(veryLongString().length > 256);
41 41
42 var re = /...<omitted>.../; 42 var re = /...<omitted>.../;
43 43
44 try { 44 try {
45 Number.prototype.toFixed.call(veryLongString); 45 Date.prototype.setDate.call(veryLongString);
46 } catch (e) { 46 } catch (e) {
47 assertTrue(e.message.length < 256); 47 assertTrue(e.message.length < 256);
48 assertTrue(re.test(e.message)); 48 assertTrue(re.test(e.message));
49 } 49 }
50 50
51 try { 51 try {
52 throw Error(veryLongString()); 52 throw Error(veryLongString());
53 } catch (e) { 53 } catch (e) {
54 assertEquals(veryLongString(), e.message); 54 assertEquals(veryLongString(), e.message);
55 } 55 }
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/regress-valueof.js ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698