You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has been in my head for a while but never written down. I should turn this issue into a Markdown document in this repo but let's just record it here for now.
Current back-pocket solution:
// async-local-storage// "Real" exports:exportclassStorageArea{ ... };exportconststorage=newStorageArea("default");// Exports meant mainly for use by other LAPIs:exportconstStorageArea_prototype_get=StorageArea.prototype.get;exportconstStorageArea_prototype_set=StorageArea.prototype.set;// ... etc ...
An ideal solution would be to make get-originals extensible so that authors could register "their" originals. That would avoid the split between get-originals for platform code, and ugly-manual-exports for LAPIs that want to share with each other.
That's a bit tricky with the current get-originals design, but we should keep an eye on it as get-originals evolves, since the design is nowhere near settled.
The text was updated successfully, but these errors were encountered:
domenic
changed the title
Explain how LAPIs can use other ways (without monkeypatching interference)
Explain how LAPIs can use other LAPIs (without monkeypatching interference)
Aug 3, 2018
This has been in my head for a while but never written down. I should turn this issue into a Markdown document in this repo but let's just record it here for now.
Current back-pocket solution:
An ideal solution would be to make get-originals extensible so that authors could register "their" originals. That would avoid the split between get-originals for platform code, and ugly-manual-exports for LAPIs that want to share with each other.
That's a bit tricky with the current get-originals design, but we should keep an eye on it as get-originals evolves, since the design is nowhere near settled.
The text was updated successfully, but these errors were encountered: