Bug 824864 - Rename EvaluateStringWithValue to EvaluateString. r=bz

Now that there's only one of them, we can get rid of the silly suffix. \o/
This commit is contained in:
Bobby Holley
2013-01-16 18:50:26 -08:00
parent 2f862505c0
commit 12a948d258
8 changed files with 32 additions and 34 deletions

View File

@@ -1595,9 +1595,9 @@ _evaluate(NPP npp, NPObject* npobj, NPString *script, NPVariant *result)
JS::CompileOptions options(cx);
options.setFileAndLine(spec, 0)
.setVersion(JSVERSION_DEFAULT);
nsresult rv = scx->EvaluateStringWithValue(utf16script, *obj, options,
/* aCoerceToString = */ false,
*rval);
nsresult rv = scx->EvaluateString(utf16script, *obj, options,
/* aCoerceToString = */ false,
*rval);
return NS_SUCCEEDED(rv) &&
(!result || JSValToNPVariant(npp, cx, *rval, result));