aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglrenderingcontext.rs
diff options
context:
space:
mode:
authorMátyás Mustoha <matyas.mustoha@h-lab.eu>2019-08-14 11:30:55 +0200
committerMátyás Mustoha <matyas.mustoha@h-lab.eu>2019-08-14 11:30:55 +0200
commit72b273a746c887c06b0943c5a51d37edc370ce54 (patch)
tree70b35dab04844d2168a0d1d9a0e08317d4e0e4bf /components/script/dom/webglrenderingcontext.rs
parentb6cdf931987e71707c217f2953e0b2a62a92868c (diff)
downloadservo-72b273a746c887c06b0943c5a51d37edc370ce54.tar.gz
servo-72b273a746c887c06b0943c5a51d37edc370ce54.zip
Fix build error when using the 'webgl_backtrace' feature
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r--components/script/dom/webglrenderingcontext.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs
index 529b9285f2d..c4c580cda32 100644
--- a/components/script/dom/webglrenderingcontext.rs
+++ b/components/script/dom/webglrenderingcontext.rs
@@ -1118,10 +1118,10 @@ pub fn capture_webgl_backtrace<T: DomObject>(_: &T) -> WebGLCommandBacktrace {
pub fn capture_webgl_backtrace<T: DomObject>(obj: &T) -> WebGLCommandBacktrace {
let bt = Backtrace::new();
unsafe {
- capture_stack!(in(obj.global().get_cx()) let stack);
+ capture_stack!(in(*obj.global().get_cx()) let stack);
WebGLCommandBacktrace {
backtrace: format!("{:?}", bt),
- js_backtrace: stack.and_then(|s| s.as_string(None)),
+ js_backtrace: stack.and_then(|s| s.as_string(None, js::jsapi::StackFormat::Default)),
}
}
}