Function JavaScriptSingleton.eval

Execute the string code as JavaScript code within the browser window. This is a call to the actual global JavaScript function eval(). If use_global_execution_context is true, the code will be evaluated in the global execution context. Otherwise, it is evaluated in the execution context of a function within the engine's runtime environment.

Variant eval (
  const(String) code,
  const(bool) use_global_execution_context = false
) nothrow @nogc;