File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6740,7 +6740,7 @@ There is no way to represent a constant observable array value in IDL.
6740
6740
The [=type name=] of an observable array type is the concatenation of the type name for |T| and the
6741
6741
string "<code>ObservableArray</code>".
6742
6742
6743
- <div class="example" id="example-af5d265e">
6743
+ <div class="example" id="example-observable-array" oldids="example- af5d265e">
6744
6744
The following [=IDL fragment=] defines an [=interface=] with an observable array attribute:
6745
6745
6746
6746
<pre highlight="webidl">
@@ -6818,8 +6818,8 @@ string "<code>ObservableArray</code>".
6818
6818
console.assert(Array.isArray(building.employees));
6819
6819
console.assert(building.employees.constructor === Array);
6820
6820
6821
- // Even is treated as an array by JSON.stringify!
6822
- console.assert(JSON.stringify(building.employees) === `["object Employee" ]`);
6821
+ // Even is treated as an array by JSON.stringify! (Note the outer []s.)
6822
+ console.assert(JSON.stringify(building.employees) === `[{} ]`);
6823
6823
</pre>
6824
6824
</div>
6825
6825
You can’t perform that action at this time.
0 commit comments