r63634 - /trunk/libjavascript-perl/debian/patches/e4x.patch

periapt-guest at users.alioth.debian.org periapt-guest at users.alioth.debian.org
Tue Oct 12 07:10:38 UTC 2010


Author: periapt-guest
Date: Tue Oct 12 07:10:29 2010
New Revision: 63634

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=63634
Log:
forgot to add patch

Added:
    trunk/libjavascript-perl/debian/patches/e4x.patch

Added: trunk/libjavascript-perl/debian/patches/e4x.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libjavascript-perl/debian/patches/e4x.patch?rev=63634&op=file
==============================================================================
--- trunk/libjavascript-perl/debian/patches/e4x.patch (added)
+++ trunk/libjavascript-perl/debian/patches/e4x.patch Tue Oct 12 07:10:29 2010
@@ -1,0 +1,24 @@
+Author: Niko Tyni <ntyni at debian.org>
+Reviewed-by: Nicholas Bamber <nicholas at periapt.co.uk>
+Last-Updated: 2010-10-12
+Subject: [PATCH] Fix E4X test failure with new SpiderMonkey versions
+ As of Mozilla 1.9.1.11, a pure XML element is not treated as valid
+ top level JavaScript but rather gets rejected with "XML cannot be the
+ whole program".
+ Work around this by throwing some valid JavaScript in the mix that
+ explicitly takes the value of the object.
+ See
+ http://hg.mozilla.org/releases/mozilla-1.9.1/rev/d4b2224cf458
+ http://hg.mozilla.org/releases/mozilla-1.9.1/rev/c4ba70070012
+Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=375250
+--- a/t/26-e4x.t
++++ b/t/26-e4x.t
+@@ -19,7 +19,7 @@
+ my $context = $runtime->create_context();
+ 
+ my $ret = $context->eval(<<'EOP');
+-<xml>this is an E4X object</xml>
++(<xml>this is an E4X object</xml>).valueOf();
+ EOP
+ is($ret, '<xml>this is an E4X object</xml>');
+ 




More information about the Pkg-perl-cvs-commits mailing list