mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix build error when using the 'webgl_backtrace' feature
This commit is contained in:
parent
b6cdf93198
commit
72b273a746
1 changed files with 2 additions and 2 deletions
|
@ -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)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue