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

Side by Side Diff: src/d8.js

Issue 18572009: Fix small mistake in d8.js. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 1013
1014 // Check for: 1014 // Check for:
1015 // en[able] exc[eptions] [all|unc[aught]] 1015 // en[able] exc[eptions] [all|unc[aught]]
1016 // dis[able] exc[eptions] [all|unc[aught]] 1016 // dis[able] exc[eptions] [all|unc[aught]]
1017 if (arg1 == 'exc' || arg1 == 'exception' || arg1 == 'exceptions') { 1017 if (arg1 == 'exc' || arg1 == 'exception' || arg1 == 'exceptions') {
1018 1018
1019 var arg2 = (nextPos > 0) ? 1019 var arg2 = (nextPos > 0) ?
1020 args.substring(nextPos + 1, args.length) : 'all'; 1020 args.substring(nextPos + 1, args.length) : 'all';
1021 if (!arg2) { 1021 if (!arg2) {
1022 arg2 = 'all'; // if unspecified, set for all. 1022 arg2 = 'all'; // if unspecified, set for all.
1023 } if (arg2 == 'unc') { // check for short cut. 1023 } else if (arg2 == 'unc') { // check for short cut.
1024 arg2 = 'uncaught'; 1024 arg2 = 'uncaught';
1025 } 1025 }
1026 excType = arg2; 1026 excType = arg2;
1027 1027
1028 // Check for: 1028 // Check for:
1029 // en[able] [all|unc[aught]] exc[eptions] 1029 // en[able] [all|unc[aught]] exc[eptions]
1030 // dis[able] [all|unc[aught]] exc[eptions] 1030 // dis[able] [all|unc[aught]] exc[eptions]
1031 } else if (arg1 == 'all' || arg1 == 'unc' || arg1 == 'uncaught') { 1031 } else if (arg1 == 'all' || arg1 == 'unc' || arg1 == 'uncaught') {
1032 1032
1033 var arg2 = (nextPos > 0) ? 1033 var arg2 = (nextPos > 0) ?
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 if ("set" in desc) { 2244 if ("set" in desc) {
2245 var setter = desc.set.toString(); 2245 var setter = desc.set.toString();
2246 props.push("set " + name + setter.slice(setter.indexOf('('))); 2246 props.push("set " + name + setter.slice(setter.indexOf('(')));
2247 } 2247 }
2248 } 2248 }
2249 return "{" + props.join(", ") + "}"; 2249 return "{" + props.join(", ") + "}";
2250 default: 2250 default:
2251 return "[crazy non-standard shit]"; 2251 return "[crazy non-standard shit]";
2252 } 2252 }
2253 } 2253 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698