Idan Horowitz
0d602c5ec5
LibJS: Convert the NewPromiseCapability AO to ThrowCompletionOr
2021-10-23 18:01:51 +02:00
Linus Groh
0881f8160f
LibJS: Use implicit ThrowCompletionOr<T> constructor where possible
...
Luckily this is not very widespread yet as most of it would happen in
the various JS functions instead of AOs.
2021-10-21 09:02:23 +01:00
davidot
13ead80ee6
LibJS: Add PrivateEnvironment
2021-10-20 23:19:17 +01:00
Idan Horowitz
ca27e5eff5
LibJS: Convert NativeFunction callback to ThrowCompletionOr
2021-10-20 12:27:19 +01:00
Linus Groh
5910a41adb
LibJS: Implement ShadowRealm.prototype.importValue()
...
Well... sort of. This adds the function itself and all the scaffolding
from the ShadowRealm API (and basically completes its implementation).
However, we do not nearly have enough support for modules and imports,
so we currently pretend whatever was attempted to be imported failed -
once we have HostImportModuleDynamically it should be relatively easy to
complete the implementation.
2021-10-15 09:36:21 +01:00
Linus Groh
c70784bb82
LibJS: Implement ShadowRealm.prototype.evaluate()
2021-10-14 00:41:41 +01:00
Linus Groh
d40331ef69
LibJS: Start implementing ShadowRealm
...
This commit adds the ShadowRealm object itself, its constructor, and
prototype (currently empty).
2021-10-14 00:41:41 +01:00
Linus Groh
50f8755792
LibJS: Implement Wrapped Function Exotic Objects
...
This is a new concept from the ShadowRealm API stage 3 proposal:
https://tc39.es/proposal-shadowrealm/#sec-wrapped-function-exotic-objects
2021-10-14 00:41:41 +01:00