Hi Thanks for the help. Currently i am using
prebuilt v8 binaries from nuget package https://github.com/pmed/v8-nuget in windows.
Is there any other way rather building the V8 and generating binaries.
I already have prebuilt v8 binaries and bin(snapshotblob and nativeblob) files from nuget package.
can we do some thing in code to exclude those built-in functionality in V8 engine?
for eg:
in js script, if i type
1) Date(); //V8 engine should show error rather than showing date.
2) var newarray = new Array(); var arr = [1,2,3,4,5];
// v8 engine should not allow creating dynamic elements.
3) var newObject = { "name"="xyz", "age"=5 };
var newObject = Object.create( Object.prototype );
// v8 engine should not allow object oriented programming .
4) function add(a,b)
{
return a+b;
}
var res = add(2,3);
// v8 engine should not allow users to create functions.
My requirement is simple comparison and returning Boolean value
5 > 3 && 4==10 || "abc" =="xyz;
i am gonna register the callbackfunctions in c++ and get the value after running the script, evaluate and print the boolean result.
Could you please help me how can i achieve this.