Transparent object proxies for javascript
Autor(en):
Zusammenfassung
This work appeared in the conference proceedings of the European Conference on Object-Oriented Programming, ECOOP 2015. One important question in the design of a proxy API is whether a proxy object should inherit the identity of its target. Apparently proxies should have their own identity for security-related applications whereas other applications, in particular contract systems, require transparent proxies that compare equal to their target objects. In this work we examine the issue with transparency in various use cases for proxies, discuss different approaches to obtain transparency, and propose two designs that require modest modifications in the JavaScript engine and cannot be bypassed by the programmer. The JavaScript Proxy API embodies a design decision that reveals the presence of proxies in some important use cases. This decision concerns object equality. Proxies are opaque, which means that each proxy has its own identity, different from all other (proxy or nonproxy) objects. Given opaque proxies, an equality test can be used to distinguish a proxy from its target as demonstrated in the following example:
- Vollständige Referenz
- BibTeX
Keil, M., Guria, S. N., Schlegel, A., Geffken, M. & Thiemann, P.,
(2016).
Transparent object proxies for javascript.
In:
Knoop, J. & Zdun, U.
(Hrsg.),
Software Engineering 2016.
Bonn:
Gesellschaft für Informatik e.V..
(S. 23-24).
@inproceedings{mci/Keil2016,
author = {Keil, Matthias AND Guria, Sankha Narayan AND Schlegel, Andreas AND Geffken, Manuel AND Thiemann, Peter},
title = {Transparent object proxies for javascript},
booktitle = {Software Engineering 2016},
year = {2016},
editor = {Knoop, Jens AND Zdun, Uwe} ,
pages = { 23-24 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
author = {Keil, Matthias AND Guria, Sankha Narayan AND Schlegel, Andreas AND Geffken, Manuel AND Thiemann, Peter},
title = {Transparent object proxies for javascript},
booktitle = {Software Engineering 2016},
year = {2016},
editor = {Knoop, Jens AND Zdun, Uwe} ,
pages = { 23-24 },
publisher = {Gesellschaft für Informatik e.V.},
address = {Bonn}
}
Haben Sie fehlerhafte Angaben entdeckt? Sagen Sie uns Bescheid: Feedback abschicken
Mehr Information
ISBN: 978-3-88579-646-6
ISSN: 1617-5468
Datum: 2016
Sprache:
(en)
(en)
Typ: Text/Conference Paper

