Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite352a4e

Browse files
tniessenmarco-ippolito
authored andcommitted
src: update outdated references to spec sections
The exact section has changed in recent versions of ECMA-262, so fix thesection number and explicitly mark the edition of the standard to avoidhaving to update it in the future.PR-URL:#53832Reviewed-By: James M Snell <jasnell@gmail.com>Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent206c668 commite352a4e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/util-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ void ArrayBufferViewContents<T, S>::ReadValue(v8::Local<v8::Value> buf) {
582582
}
583583
}
584584

585-
//ECMA262 20.1.2.5
585+
//ECMA-262, 15th edition, 21.1.2.5. Number.isSafeInteger
586586
inlineboolIsSafeJsInt(v8::Local<v8::Value> v) {
587587
if (!v->IsNumber())returnfalse;
588588
double v_d = v.As<v8::Number>()->Value();

‎src/util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void DumpJavaScriptBacktrace(FILE* fp);
217217
#defineUNREACHABLE(...) \
218218
ERROR_AND_ABORT("Unreachable code reached" __VA_OPT__(":") __VA_ARGS__)
219219

220-
//ECMA262 20.1.2.6 Number.MAX_SAFE_INTEGER (2^53-1)
220+
//ECMA-262, 15th edition, 21.1.2.6. Number.MAX_SAFE_INTEGER (2^53-1)
221221
constexprint64_tkMaxSafeJsInteger =9007199254740991;
222222

223223
inlineboolIsSafeJsInt(v8::Local<v8::Value> v);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp