Change not(ndebug) to debug_assertions

The name of this directive changed in rust-lang/rust#22980.
This commit is contained in:
Matt Brubeck 2015-06-01 13:48:38 -07:00
parent 83a0b78221
commit b78b33b7f5
4 changed files with 14 additions and 14 deletions

View file

@ -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)));