mirror of
https://github.com/rkd77/elinks.git
synced 2025-10-21 19:54:04 -04:00
Make global_object a global with the new name smjs_global_object and
create smjs_init_global_object to initialise the global.
This commit is contained in:
committed by
Miciah Dashiel Butler Masters
parent
3174c533b0
commit
d6ecf895ce
@@ -3,6 +3,11 @@
|
||||
|
||||
#include "ecmascript/spidermonkey/util.h"
|
||||
|
||||
JSObject *smjs_get_global_object(void);
|
||||
/* The root of the object hierarchy. If object 'foo' has this as its parent,
|
||||
* you can use foo's method and properties with 'foo.<method|property>'. */
|
||||
extern JSObject *smjs_global_object;
|
||||
|
||||
/* Create the global object and assign it to smjs_global_object. */
|
||||
void smjs_init_global_object(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user