Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whatwg/console
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1f2faf9e111b232dbaa7b42196b602bb214ed23f
Choose a base ref
..
head repository: whatwg/console
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dc65c238f1e5b168f5fe828e6cb75db23468caa2
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.bs
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
@@ -130,11 +130,11 @@ Try to construct a table with the columns of the properties of |tabularData| (or
1. Let |indices| be [=list/get the indices=] of |tabularData|
2. [=list/For each=] |index| of |indices|
1. Let |value| be |tabularData|[|index|]
2. Perform [create table row] with |value|, |index|, |finalColumns|, |properties| that returns |row|
2. Perform [create table row] with |index|, |value|, |finalColumns|, |properties| that returns |row|
3. [=list/Append=] |row| to |finalRows|
4. Otherwise, if |tabularData| is a [=/map=], then:
1. [=map/For each=] |key| → |value| of |tabularData|
1. Perform [create table row] with |value|, |key|, |finalColumns|, and |properties| that returns |row|
1. Perform [create table row] with |key|, |value|, |finalColumns|, and |properties| that returns |row|
2. [=list/Append=] |row| to |finalRows|
5. If |finalRows| is not [=list/empty=], then:
1. Let |finalData| be a new [=/map=].
@@ -143,7 +143,7 @@ Try to construct a table with the columns of the properties of |tabularData| (or
3. Perform <a abstract-op>Printer</a>("table", « |finalData| »).
6. Otherwise, perform <a abstract-op>Printer</a>("log", « |tabularData| »).

To [create table row] given |tabularDataItem|, |rowIndex|, [=/list=] |finalColumns|, and optional [=/list=] |properties|, perform the following steps:
To [create table row] given |rowIndex|, |tabularDataItem|, [=/list=] |finalColumns|, and optional [=/list=] |properties|, perform the following steps:

1. Let |row| be a new [=/map=]
2. [=map/Set=] |row|["(index)"] to |rowIndex|