mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 718072 - WeakMaps constructor doesn't always get initialized on the global object. r=Waldo
This commit is contained in:
parent
ab18051b4f
commit
1a624ca8b9
@ -1851,6 +1851,7 @@ static JSStdName standard_class_names[] = {
|
||||
{js_InitTypedArrayClasses, EAGER_CLASS_ATOM(Uint8ClampedArray),
|
||||
TYPED_ARRAY_CLASP(TYPE_UINT8_CLAMPED)},
|
||||
|
||||
{js_InitWeakMapClass, EAGER_ATOM_AND_CLASP(WeakMap)},
|
||||
{js_InitProxyClass, EAGER_ATOM_AND_CLASP(Proxy)},
|
||||
|
||||
{NULL, 0, NULL, NULL}
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include "jsexn.h"
|
||||
#include "jsmath.h"
|
||||
#include "json.h"
|
||||
#include "jsweakmap.h"
|
||||
|
||||
#include "builtin/RegExp.h"
|
||||
#include "frontend/BytecodeEmitter.h"
|
||||
@ -319,6 +320,7 @@ GlobalObject::initStandardClasses(JSContext *cx)
|
||||
js_InitIteratorClasses(cx, this) &&
|
||||
#endif
|
||||
js_InitDateClass(cx, this) &&
|
||||
js_InitWeakMapClass(cx, this) &&
|
||||
js_InitProxyClass(cx, this);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user