Ms2ger
acb24e80b8
Use throw_type_error and throw_range_error from js.
2015-11-12 10:20:19 +01:00
Ms2ger
6b75078503
Make DOMString a newtype around String, rather than a typedef.
...
This should make it somewhat easier to experiment with alternative
representations in the future. To reduce churn, this commit leaves the String
field public, though.
Also, this will allow us to use the default String type to represent the IDL
USVString type, which explicitly forbids unpaired surrogates, ans as such is
a better match to the Rust String type.
2015-11-04 12:09:11 +01:00
Michael Wu
e733a7c46a
Support the updated spidermonkey bindings
2015-10-14 15:30:52 -04:00
Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Brandon Fairchild
de3547e401
Fix reported test-tidy errors for unmerged import blocks
...
This merges import blocks that were reported by tidy as unmerged.
2015-09-19 12:50:14 -04:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Bogdan Cuza
45145108da
Measure heap memory usage for more types. Fixes #6951
2015-08-13 21:44:41 +03:00
Tim Taubert
92874a89d2
Implement window.crypto.getRandomValues()
2015-07-03 18:34:00 +02:00
bors-servo
6247a96761
Auto merge of #6223 - nox:merge-generic-functions, r=Ms2ger
...
Merge generic funs to share them across all bindings (fixes #2684 )
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6223 )
<!-- Reviewable:end -->
2015-06-24 03:54:56 -06:00
Anthony Ramine
a90983553b
Merge generic funs to share them across all bindings ( fixes #2684 )
2015-06-24 11:34:30 +02:00
Michael Wu
b7301ca06c
Fix some warnings caused by the SM upgrade
2015-06-19 22:07:08 -04:00
Michael Wu
675267b782
Upgrade to SM 39
2015-06-19 18:42:48 -04:00
Anthony Ramine
2c6d2d3abe
Make throw_not_in_union() throw a TypeError ( fixes #6194 )
2015-05-28 13:03:28 +02:00
Anthony Ramine
304b444ec7
Add missing range-related error types
2015-04-30 12:53:37 +02:00
Anthony Ramine
7197052c0d
Uniformise root() methods
...
They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable
and ResultRootable.
2015-04-28 09:22:45 +02:00
Aneesh Agrawal
f3aee90b06
Add Rust code for RangeErrors.
...
Implementation is alongside that of TypeErrors.
Note: the jsapi codes are reused for our own purposes, namely
distinguishing error_numbers in the get_error_message callback. See
comments in components/script/dom/bindings/error.rs for details.
2015-04-10 01:49:14 -04:00
Ms2ger
f8dec0fe58
Adjust the assertions in throw_dom_exception.
2015-04-08 20:44:49 +02:00
bors-servo
e521860a0e
Auto merge of #5490 - nox:namednodemap, r=jdm
2015-04-07 09:31:20 -05:00
Anthony Ramine
fbe2e4b626
Add dom::bindings::error::Error::InUseAttribute
2015-04-06 22:27:00 +02:00
Eric Hegnes
e398725242
Consistently name enum members in dom::bindings::error::Error
...
Fixes #5521
2015-04-05 00:09:40 -04:00
Ms2ger
1604515fd9
Fix various build warnings.
2015-03-20 17:57:49 +01:00
Ms2ger
62b2c65348
Add support for throwing TypeErrors from DOM implementations.
2015-02-28 18:20:42 +01:00
Ms2ger
fbf4d44674
Clarify the documentation for dom::bindings::error::Error variants.
2015-02-28 18:20:42 +01:00
Ms2ger
6e3c130e6c
Inline DOMException::new_from_error.
2015-02-28 18:20:42 +01:00
Ms2ger
4873682a3c
Rename FailureUnknown to JSFailed.
2015-02-28 18:20:41 +01:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
bors-servo
1a2a08aa50
auto merge of #4717 : Ms2ger/servo/doc-proxy, r=saneyuki
2015-01-28 01:48:52 -07:00
Josh Matthews
7fec73a432
Fix crash due to address significance for JSAPI things.
2015-01-28 01:13:32 +00:00
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
238f3e2d91
Require documentation for all code in dom::bindings (excluding dom::bindings::codegen).
2015-01-25 22:01:04 +01:00
Ms2ger
ecf0317bc0
Document error.rs.
2015-01-18 23:32:03 +01:00
ProgramFOX
18d8ee6ce0
Added readonly flag for CSSStyleDeclaration
2014-12-28 17:39:07 +01:00
Matt McCoy
bdb75c2146
This fixes #4166 . throw_dom_exception will take the GlobalRef by value, and all generated code will pass it by value.
2014-12-24 17:16:48 -05:00
thiagopnts
271aa277e9
Replace XHR events for generic ones in ScriptTask
...
fixup! Replace XHR events for generic ones in ScriptTask
fixup! Replace XHR events for generic ones in ScriptTask
2014-12-23 23:53:38 -02:00
Michael Booth
2cbf5a3671
Updated reflect_dom_object to be passed by value
2014-11-30 19:47:52 +00:00
Ehsan Akhgari
840d949d97
Throw DataCloneError from worker postMessage if structured clone fails
...
This fixes #3248 .
2014-10-15 21:57:40 -04:00
Keegan McAllister
a640a7c5c3
Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)
2014-09-20 13:00:06 -07:00
Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00