aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_task.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2015-06-01 13:48:38 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2015-06-01 13:48:38 -0700
commitb78b33b7f5ca276c532868c1328a1afba8e6919a (patch)
tree1d0018d3d4a479bbbfd793eaaa6d69cdf73eebaf /components/script/script_task.rs
parent83a0b7822181b26862f26fd0cd1da02da7ea6210 (diff)
downloadservo-b78b33b7f5ca276c532868c1328a1afba8e6919a.tar.gz
servo-b78b33b7f5ca276c532868c1328a1afba8e6919a.zip
Change not(ndebug) to debug_assertions
The name of this directive changed in rust-lang/rust#22980.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r--components/script/script_task.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs
index cad737b4af4..ff13cc12ff0 100644
--- a/components/script/script_task.rs
+++ b/components/script/script_task.rs
@@ -529,7 +529,7 @@ impl ScriptTask {
}
// Needed for debug assertions about whether GC is running.
- if !cfg!(ndebug) {
+ if cfg!(debug_assertions) {
unsafe {
JS_SetGCCallback(runtime.rt(),
Some(debug_gc_callback as unsafe extern "C" fn(*mut JSRuntime, JSGCStatus)));