Commit bbd3f4f3 authored by jaubourg's avatar jaubourg

Compatibility fixes in ajax: exceptions are no longer promoted to strings...

Compatibility fixes in ajax: exceptions are no longer promoted to strings before being given to callbacks. Updated misleading comment in conversion code.
parent 1e4f3c07
...@@ -472,7 +472,7 @@ jQuery.extend({ ...@@ -472,7 +472,7 @@ jQuery.extend({
} catch(e) { } catch(e) {
// We have a parsererror // We have a parsererror
statusText = "parsererror"; statusText = "parsererror";
error = "" + e; error = e;
} }
} }
} else { } else {
...@@ -662,7 +662,7 @@ jQuery.extend({ ...@@ -662,7 +662,7 @@ jQuery.extend({
} catch (e) { } catch (e) {
// Propagate exception as error if not done // Propagate exception as error if not done
if ( status < 2 ) { if ( status < 2 ) {
done( -1, "" + e ); done( -1, e );
// Simply rethrow otherwise // Simply rethrow otherwise
} else { } else {
jQuery.error( e ); jQuery.error( e );
...@@ -849,7 +849,7 @@ function ajaxConvert( s, response ) { ...@@ -849,7 +849,7 @@ function ajaxConvert( s, response ) {
conversion, conversion,
// Conversion function // Conversion function
conv, conv,
// Conversion functions (when text is used in-between) // Conversion functions (transitive conversion)
conv1, conv1,
conv2; conv2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment