← Back to release summary

Web Storage: Anonymous getter may return null

Category
Offline / Storage
Type
New or changed feature
Status
Enabled by default (Chrome 63)
Intent stage
None

Summary

Blink used to add an anonymous named property getter to the Storage interface (used by sessionStorage and localStorage) that behaved slightly differently from the getItem() method. The anonymous getter has been removed, and getItem() is now used behind the scenes instead. One visible consequence is that attempting to access a key that does not exist via the getter will return null instead of undefined.

Standards & signals

View on chromestatus.com