From 5aa65d2aeab36ea8de8129c0babcf70a5e4e662a Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 20 Feb 2022 22:00:59 +0000 Subject: Issue #1877 - Resolve NIGHTLY_BUILD conditionals. --- js/src/wasm/AsmJS.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'js/src/wasm') diff --git a/js/src/wasm/AsmJS.cpp b/js/src/wasm/AsmJS.cpp index f659c27ffa..8cbbff5370 100644 --- a/js/src/wasm/AsmJS.cpp +++ b/js/src/wasm/AsmJS.cpp @@ -1,6 +1,7 @@ /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * Copyright 2014 Mozilla Foundation + * Copyright 2022 Moonchild Productions * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -8546,9 +8547,7 @@ LookupAsmJSModuleInCache(ExclusiveContext* cx, AsmJSParser& parser, bool* loaded // Don't punish release users by crashing if there is a programmer error // here, just gracefully return with a cache miss. -#ifdef NIGHTLY_BUILD - MOZ_RELEASE_ASSERT(cursor == entry.memory + entry.serializedSize); -#endif + MOZ_ASSERT(cursor == entry.memory + entry.serializedSize); if (cursor != entry.memory + entry.serializedSize) return true; -- cgit v1.2.3