/**
 * Evaluate script with scope variables.
 * @function lib.expression.evaluateScriptWithScope
 * @param {string} scriptString - Script string to evaluate.
 * @param {object} scopedVariables - Scoped variables object
 * @returns {object} - Evaluated data.
 * @author Taka Okunishi
 */

module.exports = function (scriptString, scopedVariables) {
    return eval("with(scopedVariables){" + scriptString + "}");
};