Skip to content

Commit 99c66f4

Browse files
AtkinsSJtrflynn89
authored andcommitted
LibJS: Update console spec's use of "Type()" -> "is a"
Corresponds to the change in this PR: whatwg/console#241
1 parent 3467076 commit 99c66f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Userland/Libraries/LibJS/Console.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ ThrowCompletionOr<Value> Console::assert_()
6767
else {
6868
// 1. Let first be data[0].
6969
auto& first = data[0];
70-
// 2. If Type(first) is not String, then prepend message to data.
70+
// 2. If first is not a String, then prepend message to data.
7171
if (!first.is_string()) {
7272
data.prepend(message);
7373
}
@@ -858,7 +858,7 @@ ThrowCompletionOr<MarkedVector<Value>> ConsoleClient::formatter(MarkedVector<Val
858858
}
859859
// 2. If specifier is %d or %i:
860860
else if (specifier.is_one_of("%d"sv, "%i"sv)) {
861-
// 1. If Type(current) is Symbol, let converted be NaN
861+
// 1. If current is a Symbol, let converted be NaN
862862
if (current.is_symbol()) {
863863
converted = js_nan();
864864
}
@@ -869,7 +869,7 @@ ThrowCompletionOr<MarkedVector<Value>> ConsoleClient::formatter(MarkedVector<Val
869869
}
870870
// 3. If specifier is %f:
871871
else if (specifier == "%f"sv) {
872-
// 1. If Type(current) is Symbol, let converted be NaN
872+
// 1. If current is a Symbol, let converted be NaN
873873
if (current.is_symbol()) {
874874
converted = js_nan();
875875
}

0 commit comments

Comments
 (0)