diff --git a/src/util-inl.h b/src/util-inl.h index 86e6aaaec9c74a..9dd61a98933685 100644 --- a/src/util-inl.h +++ b/src/util-inl.h @@ -501,7 +501,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 1bb352537d6e51..93a79f8761ee65 100644 --- a/src/util.h +++ b/src/util.h @@ -215,7 +215,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);