aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/error.rs
Commit message (Collapse)AuthorAgeFilesLines
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Don't return early from report_pending_exception() if the value is an ↵Ms2ger2016-11-271-9/+10
| | | | | | unexpected object. We will now dispatch the error event in this case as well.
* Invert conditional and return early from report_pending_exceptionFlorian Hartwig2016-10-131-41/+41
|
* Remove GlobalRoot and GlobalRefAnthony Ramine2016-10-061-3/+2
|
* Introduce GlobalScope::report_an_errorAnthony Ramine2016-10-061-3/+3
|
* Make Error::to_jsval take a &GlobalScopeAnthony Ramine2016-10-061-3/+3
|
* Make throw_dom_exception take a &GlobalScopeAnthony Ramine2016-10-061-3/+4
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-1/+1
|
* Add a simple API to reject promises with DOM error values.Josh Matthews2016-09-221-0/+12
|
* Reorder `use` statementsUK9922016-09-091-1/+1
|
* Implement report_an_error on GlobalRef.Ms2ger2016-09-051-3/+1
|
* Panic when stringifying an primitive fails.Ms2ger2016-09-021-2/+1
| | | | This should not happen.
* Dispatch error events at the window object.Ms2ger2016-09-021-22/+46
|
* Remove the JSAutoCompartment from report_pending_exception.Ms2ger2016-08-261-4/+1
| | | | It doesn't really belong there.
* Update rust-mozjs dependencyGuillaume Gomez2016-08-241-3/+3
|
* Remove an unused argument to ErrorInfo::from_dom_exception.Ms2ger2016-07-291-2/+2
|
* Update SpiderMonkey to m-c bcf4ff0c3eef.Ms2ger2016-07-281-4/+105
| | | | | | This currently breaks Servo on Android, because there are a number of interdependent changes that cannot easily land serially in a way that keeps it working throughout. We expect to fix this in the near future.
* Auto merge of #12261 - szeged:gattcharacteristicfunctions, r=jdmbors-servo2016-07-061-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Missing steps of Characteristic's readValue, writeValue functions <!-- Please describe your changes on the following line: --> Add a check for the read property of the characteristic as described in https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-readvalue (Step 4.1) Add two missing steps to characteristic's WriteValue function. https://webbluetoothcg.github.io/web-bluetooth/#dom-bluetoothremotegattcharacteristic-writevalue (Step 4 and 5) --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because, there are no Web Bluetooth test API implementation yet. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12261) <!-- Reviewable:end -->
| * Missing steps of Characteristic's readValue, writeValue functionszakorgy2016-07-061-0/+3
| |
* | Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-2/+2
|/
* Make report_pending_exception unsafeAnthony Ramine2016-06-071-6/+4
|
* Remove JS_SaveFrameChain and JS_RestoreFrameChain calls.Ms2ger2016-05-171-9/+2
| | | | | They were cargo-culted from Gecko, where they haven't been necessary for a while either.
* Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-1/+0
|
* Use throw_type_error and throw_range_error from js.Ms2ger2015-11-121-76/+11
|
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-3/+2
| | | | | | | | | | 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.
* Support the updated spidermonkey bindingsMichael Wu2015-10-141-10/+10
|
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-6/+5
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-5/+2
| | | | This merges import blocks that were reported by tidy as unmerged.
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-1/+2
|
* Implement window.crypto.getRandomValues()Tim Taubert2015-07-031-0/+6
|
* Auto merge of #6223 - nox:merge-generic-functions, r=Ms2gerbors-servo2015-06-241-0/+10
|\ | | | | | | | | | | | | | | | | | | 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 -->
| * Merge generic funs to share them across all bindings (fixes #2684)Anthony Ramine2015-06-241-0/+10
| |
* | Fix some warnings caused by the SM upgradeMichael Wu2015-06-191-1/+0
|/
* Upgrade to SM 39Michael Wu2015-06-191-22/+25
|
* Make throw_not_in_union() throw a TypeError (fixes #6194)Anthony Ramine2015-05-281-7/+4
|
* Add missing range-related error typesAnthony Ramine2015-04-301-0/+6
|
* Uniformise root() methodsAnthony Ramine2015-04-281-0/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Add Rust code for RangeErrors.Aneesh Agrawal2015-04-101-10/+41
| | | | | | | 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.
* Adjust the assertions in throw_dom_exception.Ms2ger2015-04-081-3/+8
|
* Auto merge of #5490 - nox:namednodemap, r=jdmbors-servo2015-04-071-0/+3
|\
| * Add dom::bindings::error::Error::InUseAttributeAnthony Ramine2015-04-061-0/+3
| |
* | Consistently name enum members in `dom::bindings::error::Error`Eric Hegnes2015-04-051-6/+6
|/ | | | Fixes #5521
* Fix various build warnings.Ms2ger2015-03-201-2/+2
|
* Add support for throwing TypeErrors from DOM implementations.Ms2ger2015-02-281-0/+10
|
* Clarify the documentation for dom::bindings::error::Error variants.Ms2ger2015-02-281-15/+15
|
* Inline DOMException::new_from_error.Ms2ger2015-02-281-2/+20
|
* Rename FailureUnknown to JSFailed.Ms2ger2015-02-281-2/+2
|
* Upgrade to rustc ba2f13ef0 2015-02-04Simon Sapin2015-02-111-1/+1
|