Skip to content

localStorage 'remove' API inconsistent with Pebble docs and standard Web API #6

Description

@rbattle

The Pebble localStorage API docs reference removeItem, but calling localStorage.removeItem('foo') fails constantly in the Pebble SDK SDK 4.9.169.

It throws

[00:05:34] xsPlatform.c:209> undefined
[00:05:34] xsPlatform.c:217> fxAbort unhandled exception:
[00:05:34] ault_handling.c:98> App fault! {33b1906f-37cc-4cb1-b6ac-5a9da3c94c8b} PC: 0x5 LR: ???
Program Counter (PC)    : 0x5        b'??:0'
Link Register (LR)      : ???        ???
Exception in thread PebbleConnection:

The implemented API is remove.

See the following example which works:

localStorage.remove("counter");

Seems like removeItem should be implemented if you want consistency with the familar Web Storage APIs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions