summaryrefslogtreecommitdiffstats
path: root/js/src/jsexn.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jsexn.h')
-rw-r--r--js/src/jsexn.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/src/jsexn.h b/js/src/jsexn.h
index 1698bb2e9..00120d89c 100644
--- a/js/src/jsexn.h
+++ b/js/src/jsexn.h
@@ -70,7 +70,8 @@ static_assert(JSEXN_ERR == 0 &&
JSProto_Error + JSEXN_WASMCOMPILEERROR == JSProto_CompileError &&
JSProto_Error + JSEXN_WASMRUNTIMEERROR == JSProto_RuntimeError &&
JSEXN_WASMRUNTIMEERROR + 1 == JSEXN_WARN &&
- JSEXN_WARN + 1 == JSEXN_LIMIT,
+ JSEXN_WARN + 1 == JSEXN_NOTE &&
+ JSEXN_NOTE + 1 == JSEXN_LIMIT,
"GetExceptionProtoKey and ExnTypeFromProtoKey require that "
"each corresponding JSExnType and JSProtoKey value be separated "
"by the same constant value");