|
@@ -24,6 +24,7 @@ using Jint.Native.String;
|
|
using Jint.Native.Symbol;
|
|
using Jint.Native.Symbol;
|
|
using Jint.Native.TypedArray;
|
|
using Jint.Native.TypedArray;
|
|
using Jint.Native.WeakMap;
|
|
using Jint.Native.WeakMap;
|
|
|
|
+using Jint.Native.WeakRef;
|
|
using Jint.Native.WeakSet;
|
|
using Jint.Native.WeakSet;
|
|
|
|
|
|
namespace Jint.Runtime
|
|
namespace Jint.Runtime
|
|
@@ -53,6 +54,7 @@ namespace Jint.Runtime
|
|
private ErrorConstructor? _uriError;
|
|
private ErrorConstructor? _uriError;
|
|
private WeakMapConstructor? _weakMap;
|
|
private WeakMapConstructor? _weakMap;
|
|
private WeakSetConstructor? _weakSet;
|
|
private WeakSetConstructor? _weakSet;
|
|
|
|
+ private WeakRefConstructor? _weakRef;
|
|
private PromiseConstructor? _promise;
|
|
private PromiseConstructor? _promise;
|
|
private ProxyConstructor? _proxy;
|
|
private ProxyConstructor? _proxy;
|
|
private ReflectInstance? _reflect;
|
|
private ReflectInstance? _reflect;
|
|
@@ -181,6 +183,9 @@ namespace Jint.Runtime
|
|
public WeakSetConstructor WeakSet =>
|
|
public WeakSetConstructor WeakSet =>
|
|
_weakSet ??= new WeakSetConstructor(_engine, _realm, Function.PrototypeObject, Object.PrototypeObject);
|
|
_weakSet ??= new WeakSetConstructor(_engine, _realm, Function.PrototypeObject, Object.PrototypeObject);
|
|
|
|
|
|
|
|
+ internal WeakRefConstructor WeakRef =>
|
|
|
|
+ _weakRef ??= new WeakRefConstructor(_engine, _realm, Function.PrototypeObject, Object.PrototypeObject);
|
|
|
|
+
|
|
public PromiseConstructor Promise =>
|
|
public PromiseConstructor Promise =>
|
|
_promise ??= new PromiseConstructor(_engine, _realm, Function.PrototypeObject, Object.PrototypeObject);
|
|
_promise ??= new PromiseConstructor(_engine, _realm, Function.PrototypeObject, Object.PrototypeObject);
|
|
|
|
|