[Pkg-javascript-commits] [node-expat] 30/371: test.js: don't use setEncoding(), it's superfluous right after new Parser()
Jonas Smedegaard
dr at jones.dk
Sun Feb 28 09:59:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-expat.
commit 94081ca46fc4fab4183a9409c4ba6a2c64ae376b
Author: Astro <astro at spaceboyz.net>
Date: Wed Jun 9 22:37:35 2010 +0200
test.js: don't use setEncoding(), it's superfluous right after new Parser()
---
test.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test.js b/test.js
index b2cb05a..ba104c4 100644
--- a/test.js
+++ b/test.js
@@ -26,8 +26,8 @@ function expect(s, evs_expected) {
for(var step = s.length; step > 0; step--) {
iterations++;
var evs_received = [];
- var p = new expat.Parser("ISO-8859-1");
- p.setEncoding("UTF-8");
+ var p = new expat.Parser("UTF-8");
+ //p.setEncoding("UTF-8");
p.addListener('startElement', function(name, attrs) {
evs_received.push(['startElement', name, attrs]);
});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git
More information about the Pkg-javascript-commits
mailing list