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

Unified Diff: frog/frogsh

Issue 8677018: add with strings bug fix (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | « frog/corejs.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/frogsh
diff --git a/frog/frogsh b/frog/frogsh
index 7bd1fc8bf6bc9d983c4129de57f27cdd7cd40045..7ecb86fe29dfcd7d6a4cf95e6a65646e3937a72f 100755
--- a/frog/frogsh
+++ b/frog/frogsh
@@ -140,7 +140,7 @@ Object.prototype.$setindex = function(i, value) { return this[i] = value; }
Array.prototype.$setindex = function(i, value) { return this[i] = value; }
function $add(x, y) {
return ((typeof(x) == 'number' && typeof(y) == 'number') ||
- (typeof(x) == 'string' && typeof(y) == 'string'))
+ (typeof(x) == 'string'))
? x + y : x.$add(y);
}
function $eq(x, y) {
@@ -12209,7 +12209,7 @@ CoreJs.prototype.useOperator = function(name) {
case '\$add':
- code = "function $add(x, y) {\n return ((typeof(x) == 'number' && typeof(y) == 'number') ||\n (typeof(x) == 'string' && typeof(y) == 'string'))\n ? x + y : x.$add(y);\n}";
+ code = "function $add(x, y) {\n return ((typeof(x) == 'number' && typeof(y) == 'number') ||\n (typeof(x) == 'string'))\n ? x + y : x.$add(y);\n}";
break;
case '\$truncdiv':
« no previous file with comments | « frog/corejs.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698