mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 674171: Make the JavaScript shell's 'evaluate' function to return a value. r=jorendorff
This simplifies writing tests, since one can use common structure around uses of both 'eval' (which produces "eval" frames) and 'evaluate' (which produces "global" frames).
This commit is contained in:
parent
2e872d2ec9
commit
435129c819
@ -866,8 +866,7 @@ Evaluate(JSContext *cx, unsigned argc, jsval *vp)
|
||||
return false;
|
||||
}
|
||||
|
||||
JS_SET_RVAL(cx, vp, JSVAL_VOID);
|
||||
return JS_EvaluateUCScript(cx, thisobj, codeChars, codeLength, "@evaluate", 0, NULL);
|
||||
return JS_EvaluateUCScript(cx, thisobj, codeChars, codeLength, "@evaluate", 0, vp);
|
||||
}
|
||||
|
||||
static JSString *
|
||||
|
Loading…
Reference in New Issue
Block a user