Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Elevated library layer

0
0
hi

I want to use ClearScript to implement a small JavaScript plugin environment. Now I would like to implement a JavaScript library layer which has access to security relevant host functionality while the actual plugin code I am going to execute has not. Plugin code should only have access to the library layer.
My first idea was to expose the necessary host objects only as local variables in functions of the library layer. However, I have not found a way to do this.
Is there any way to achieve this "elevated" library layer?

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images