Hi all,

In C++ code we use ScriptCompiler::CompileFunction() member function to 
compile JS function source code. From documentation it says that's 
equivalent to

with (obj) { return function(args) { ... } }

Where I understand source argument goes to the ... location above.

Is there a way to have an arrow function compiled and created from 
ScriptCompiler C++ any Compile function ? Idea would be to avoid explicit 
return statement for small one line functions.

Many thanks for advice,
Best

Joseph

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/v8-dev/732f6c38-378b-47a2-857c-2ccfa1750195n%40googlegroups.com.

Reply via email to