diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc index 61fafb1ba1..e7b785546e 100644 --- a/src/ast/scopes.cc +++ b/src/ast/scopes.cc @@ -1451,8 +1451,7 @@ void Scope::Print(int n) { } void Scope::CheckScopePositions() { - // A scope is allowed to have invalid positions if it is hidden and has no - // inner scopes + // Visible leaf scopes must have real positions. if (!is_hidden() && inner_scope_ == nullptr) { CHECK_NE(kNoSourcePosition, start_position()); CHECK_NE(kNoSourcePosition, end_position()); diff --git a/src/isolate.h b/src/isolate.h index 9fdff50549..34b0f91f05 100644 --- a/src/isolate.h +++ b/src/isolate.h @@ -724,7 +724,7 @@ class Isolate { void ReportFailedAccessCheck(Handle receiver); // Exception throwing support. The caller should use the result - // of Throw() as its return vaue. + // of Throw() as its return value. Object* Throw(Object* exception, MessageLocation* location = NULL); Object* ThrowIllegalOperation();