The line ^this.all[Server.default.name].keys assumes that every server object has a ProxySpace repository. This isn't true: the repository is created with the first Ndef for that server. So your first attempt to use Ndef in a session will produce a "'keys' not understood" error. This PR guards against this.
(I haven't considered the "@TODO" -- I'm not changing the spec, just fixing a detail that made it not work according to the spec.)
The line
^this.all[Server.default.name].keys
assumes that every server object has a ProxySpace repository. This isn't true: the repository is created with the first Ndef for that server. So your first attempt to use Ndef in a session will produce a "'keys' not understood" error. This PR guards against this.(I haven't considered the "@TODO" -- I'm not changing the spec, just fixing a detail that made it not work according to the spec.)