global.eval

any eval (String stringExpression)

Parameters

stringExpression The string to evaluate.

Description

Evaluates its argument as a JavaScript script, and returns the result of evaluation.

You can pass the result of an object’s toSource() method to reconstruct that object.