diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-07-06 17:44:09 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 17:44:09 -0400 |
commit | 1b9d8fa674115dabdddbfd47acbc9a9e336b8ed4 (patch) | |
tree | b996f245a09434a0bd4f69e3e13c2e531885a950 /components/script_plugins/utils.rs | |
parent | c90737e6c8b9436919706f9490ba6d05492b7121 (diff) | |
parent | cceaede96a18e67d93c087d6d499f27eda022025 (diff) | |
download | servo-1b9d8fa674115dabdddbfd47acbc9a9e336b8ed4.tar.gz servo-1b9d8fa674115dabdddbfd47acbc9a9e336b8ed4.zip |
Auto merge of #21131 - Manishearth:empty, r=nox
Make (dictionary)::empty() safe
It currently works by constructing from null (which will throw a runtime
error if there are non-defaultable members).
This changes it so that we no longer need a JSContext to construct this,
so it can be safely constructed. In the case of non-defaultable members,
this method simply does not exist.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21131)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script_plugins/utils.rs')
0 files changed, 0 insertions, 0 deletions