Transparent object proxies for javascript
dc.contributor.author | Keil, Matthias | |
dc.contributor.author | Guria, Sankha Narayan | |
dc.contributor.author | Schlegel, Andreas | |
dc.contributor.author | Geffken, Manuel | |
dc.contributor.author | Thiemann, Peter | |
dc.contributor.editor | Knoop, Jens | |
dc.contributor.editor | Zdun, Uwe | |
dc.date.accessioned | 2017-06-21T07:37:25Z | |
dc.date.available | 2017-06-21T07:37:25Z | |
dc.date.issued | 2016 | |
dc.description.abstract | 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: | en |
dc.identifier.isbn | 978-3-88579-646-6 | |
dc.identifier.pissn | 1617-5468 | |
dc.language.iso | en | |
dc.publisher | Gesellschaft für Informatik e.V. | |
dc.relation.ispartof | Software Engineering 2016 | |
dc.relation.ispartofseries | Lecture Notes in Informatics (LNI) - Proceedings, Volume P-252 | |
dc.title | Transparent object proxies for javascript | en |
dc.type | Text/Conference Paper | |
gi.citation.endPage | 24 | |
gi.citation.publisherPlace | Bonn | |
gi.citation.startPage | 23 | |
gi.conference.date | 23.-26. Februar 2016 | |
gi.conference.location | Wien |
Dateien
Originalbündel
1 - 1 von 1