Commit d9a81bd5 authored by Dominic Farolino's avatar Dominic Farolino Committed by Commit Bot

Fix dir() and table() method lengths

This CL fixes the lengths of the console dir() and table() methods to
match the WHATWG Console Standard and the IDL WPTs.

R=mathias@chromium.org

Bug: chromium:948678
Change-Id: I2c603e202a3e5995eec06dadac09807f76ee9167
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1902968Reviewed-by: 's avatarMathias Bynens <mathias@chromium.org>
Commit-Queue: Dominic Farolino <dom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64840}
parent 3b1f3dd7
...@@ -2889,12 +2889,12 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object, ...@@ -2889,12 +2889,12 @@ void Genesis::InitializeGlobal(Handle<JSGlobalObject> global_object,
false, NONE); false, NONE);
SimpleInstallFunction(isolate_, console, "warn", Builtins::kConsoleWarn, 0, SimpleInstallFunction(isolate_, console, "warn", Builtins::kConsoleWarn, 0,
false, NONE); false, NONE);
SimpleInstallFunction(isolate_, console, "dir", Builtins::kConsoleDir, 1, SimpleInstallFunction(isolate_, console, "dir", Builtins::kConsoleDir, 0,
false, NONE); false, NONE);
SimpleInstallFunction(isolate_, console, "dirxml", Builtins::kConsoleDirXml, SimpleInstallFunction(isolate_, console, "dirxml", Builtins::kConsoleDirXml,
0, false, NONE); 0, false, NONE);
SimpleInstallFunction(isolate_, console, "table", Builtins::kConsoleTable, SimpleInstallFunction(isolate_, console, "table", Builtins::kConsoleTable,
1, false, NONE); 0, false, NONE);
SimpleInstallFunction(isolate_, console, "trace", Builtins::kConsoleTrace, SimpleInstallFunction(isolate_, console, "trace", Builtins::kConsoleTrace,
0, false, NONE); 0, false, NONE);
SimpleInstallFunction(isolate_, console, "group", Builtins::kConsoleGroup, SimpleInstallFunction(isolate_, console, "group", Builtins::kConsoleGroup,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment