File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -1789,21 +1789,14 @@ Attempting to store a property on a primitive value will fail and
1789
1789
throw an error. In the first example below the [=object-store/key
1790
1790
path=] for the object store is "`foo`". The actual object
1791
1791
is a primitive with the value, `4`. Trying to define a
1792
- property on that primitive value fails. The same is true for arrays.
1793
- Properties are not allowed on an array. In the second example below,
1794
- the actual object is an array, `[10] `. Trying to define a
1795
- property on the array fails.
1792
+ property on that primitive value fails.
1796
1793
1797
1794
```js
1798
1795
const store = db.createObjectStore("store", { keyPath: "foo", autoIncrement: true });
1799
1796
1800
1797
// The key generation will attempt to create and store the key path
1801
1798
// property on this primitive.
1802
1799
store.put(4); // will throw DataError
1803
-
1804
- // The key generation will attempt to create and store the key path
1805
- // property on this array.
1806
- store.put([10] ); // will throw DataError
1807
1800
```
1808
1801
</div>
1809
1802
You can’t perform that action at this time.
0 commit comments