]> git.parisson.com Git - pdf.js.git/commitdiff
remove toString code to avoid any future accidental implicit conversions
authorAndreas Gal <andreas.gal@gmail.com>
Sat, 18 Jun 2011 08:18:21 +0000 (01:18 -0700)
committerAndreas Gal <andreas.gal@gmail.com>
Sat, 18 Jun 2011 08:18:21 +0000 (01:18 -0700)
pdf.js

diff --git a/pdf.js b/pdf.js
index cc866c174633434bfb97a9b7d9f0619eab87222f..9c4344fab6f8be15a63b47358f999503b88b4084 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -5,7 +5,6 @@ var ERRORS = 0, WARNINGS = 1, TODOS = 5;
 var verbosity = WARNINGS;
 
 function log(msg) {
-    msg = msg.toString ? msg.toString() : msg;
     if (console && console.log)
         console.log(msg);
     else if (print)
@@ -523,9 +522,6 @@ var Name = (function() {
     }
 
     constructor.prototype = {
-      toString: function() {
-        return this.name;
-      }
     };
 
     return constructor;
@@ -537,9 +533,6 @@ var Cmd = (function() {
     }
 
     constructor.prototype = {
-      toString: function() {
-        return this.cmd;
-      }
     };
 
     return constructor;
@@ -566,12 +559,6 @@ var Dict = (function() {
         forEach: function(aCallback) {
           for (var key in this.map)
             aCallback(key, this.map[key]);
-        },
-        toString: function() {
-          var keys = [];
-          for (var key in this.map)
-            keys.push(key);
-          return "Dict with " + keys.length + " keys: " + keys;
         }
     };