diff --git a/src/util-inl.h b/src/util-inl.h index 1e761d0aa54c09..31ffa4934cf005 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -582,7 +582,7 @@ void ArrayBufferViewContents::ReadValue(v8::Local buf) { } } -// ECMA262 20.1.2.5 +// ECMA-262, 15th edition, 21.1.2.5. Number.isSafeInteger inline bool IsSafeJsInt(v8::Local v) { if (!v->IsNumber()) return false; double v_d = v.As()->Value(); diff --git a/src/util.h b/src/util.h index 3ae876e5484f0e..655197ff1ba604 100644 --- a/src/util.h +++ b/src/util.h @@ -217,7 +217,7 @@ void DumpJavaScriptBacktrace(FILE* fp); #define UNREACHABLE(...) \ ERROR_AND_ABORT("Unreachable code reached" __VA_OPT__(": ") __VA_ARGS__) -// ECMA262 20.1.2.6 Number.MAX_SAFE_INTEGER (2^53-1) +// ECMA-262, 15th edition, 21.1.2.6. Number.MAX_SAFE_INTEGER (2^53-1) constexpr int64_t kMaxSafeJsInteger = 9007199254740991; inline bool IsSafeJsInt(v8::Local v);