servo/components/script/dom/bindings
bors-servo 8bab1cd7a4 Auto merge of #8854 - KiChjang:undefined-as-missing, r=frewsxcv
Treat 'undefined' passed to optional JS arguments as missing

@frewsxcv please don't hurt me for this.

I've added an AND condition to check whether the value being passed is undefined while checking whether the argument exists at all. Essentially, this is now treating undefined arguments the same as missing arguments.

Fixes #8813.
Fixes #6558.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8854)
<!-- Reviewable:end -->
2015-12-13 10:41:56 +05:30
..
codegen Treat undefined arguments in JS as missing 2015-12-12 21:13:29 -08:00
callback.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
cell.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
conversions.rs Remove an unused trait. 2015-11-20 11:39:03 +01:00
error.rs Use throw_type_error and throw_range_error from js. 2015-11-12 10:20:19 +01:00
global.rs Move ScriptMsg from msg crate into script_traits 2015-12-09 20:50:11 +01:00
inheritance.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
js.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
mod.rs Introduce trait WeakReferenceable 2015-11-12 12:51:50 +01:00
num.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
proxyhandler.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
refcounted.rs Remove from Trusted::new an unnecessary argument 2015-12-12 22:31:19 +06:00
reflector.rs Remove #[allow(raw_pointer_derive)] attributes 2015-11-27 14:32:57 -05:00
str.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
structuredclone.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
trace.rs Move ScriptMsg from msg crate into script_traits 2015-12-09 20:50:11 +01:00
utils.rs Rename the browsercontext module. 2015-12-11 15:27:27 -05:00
weakref.rs Rustfmt some of script. 2015-11-18 11:14:05 +01:00
xmlname.rs Update string_cache to 0.2. 2015-11-25 10:13:21 -06:00