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

Unified Diff: mojo/public/js/codec.js

Issue 807873002: Correct 'string literal' to 'primitive strings' (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/codec.js
diff --git a/mojo/public/js/codec.js b/mojo/public/js/codec.js
index f071d2f870923c6cd2202f7a692b3a17d853c140..d987026ebf94facdbd5e68ffb850bb59f04a4c17 100644
--- a/mojo/public/js/codec.js
+++ b/mojo/public/js/codec.js
@@ -371,7 +371,7 @@ define("mojo/public/js/codec", [
this.encodePointer(val);
return;
}
- // This only accepts string literals, not objects like new String("foo").
+ // Only accepts string primivites, not String Objects like new String("foo")
if (typeof(val) !== "string") {
throw new Error(kErrorString);
}
« 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