mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 873730. Make JS_SourceHook take a Handle for the JSScript. r=till
This commit is contained in:
parent
3bbf4c8611
commit
9b8ebb7008
@ -177,7 +177,8 @@ struct JSFunctionSpecWithHelp {
|
||||
extern JS_FRIEND_API(bool)
|
||||
JS_DefineFunctionsWithHelp(JSContext *cx, JSObject *obj, const JSFunctionSpecWithHelp *fs);
|
||||
|
||||
typedef bool (* JS_SourceHook)(JSContext *cx, JSScript *script, jschar **src, uint32_t *length);
|
||||
typedef bool (* JS_SourceHook)(JSContext *cx, JS::Handle<JSScript*> script,
|
||||
jschar **src, uint32_t *length);
|
||||
|
||||
extern JS_FRIEND_API(void)
|
||||
JS_SetSourceHook(JSRuntime *rt, JS_SourceHook hook);
|
||||
|
@ -2601,7 +2601,8 @@ ReadSourceFromFilename(JSContext *cx, const char *filename, jschar **src, uint32
|
||||
function. See the comment in the XPCJSRuntime constructor.
|
||||
*/
|
||||
static bool
|
||||
SourceHook(JSContext *cx, JSScript *script, jschar **src, uint32_t *length)
|
||||
SourceHook(JSContext *cx, JS::Handle<JSScript*> script, jschar **src,
|
||||
uint32_t *length)
|
||||
{
|
||||
*src = NULL;
|
||||
*length = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user