eclipsesource / eclipsesource/J2V8

Limit Javascript

Open
#571 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.6k
Forks
387
PR merge metrics
No merged PRs in 30d

Description

Hi Team,
I'm looking for an Embedded JS Script Executor in java. recently came across J2V8. i don't know where to look for the J2V8 Forum. so i will post my query here.

I have a use case , where user will write JS Script i need to run these scripts in Java.
Using J2V8 Callback / Java Binding method i'm able to provide our own functions for user to access the data.

But we want to limit user script features. like we want to restrict XHR, Async Events (settimeout,setinterval,etc..) ,unnecessary DOM related operations ( i hope j2v8 wont support DOM because it is running on server).
and detecting infinite loop. ( may be some kind of timeout ).

Can anyone share documents / procedures to achieve these?

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.