Linus Groh
9946e9e874
LibJS: Convert RegExpStringIterator::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
cad40ec953
LibJS: Convert RegExpObject::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
bfb8d83535
LibJS: Convert Realm::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
e0818bf21e
LibJS: Convert ProxyObject::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
6e386acb11
LibJS: Convert PromiseResolvingFunction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
d3cb7cd584
LibJS: Convert PromiseFooElementFunction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
716c8bdc9d
LibJS: Convert PromiseReaction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
a4d85cd522
LibJS: Convert Promise::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
ddc6e139a6
LibJS: Convert Object::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
f990095728
LibJS: Convert NumberObject::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
b42e293ddd
LibJS: Convert NativeFunction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
9846d23c79
LibJS: Convert MapIterator::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
d48cdc7fa6
LibJS: Convert Map::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
45f903da00
LibJS: Convert Intrinsics::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
237402aea9
LibJS: Convert Intl::Segments::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
df589bb05b
LibJS: Convert Intl::SegmentIterator::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
658bd2f342
LibJS: Convert Intl::NumberFormatFunction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
b2034c59dc
LibJS: Convert Intl::Locale::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
81d5bbcb04
LibJS: Convert Intl::DateTimeFormatFunction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
46acce5142
LibJS: Convert Intl::CollatorCompareFunction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
83de01043f
LibJS: Convert GeneratorObject::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
d21ac9d820
LibJS: Convert Error::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
73efdb1cc4
LibJS: Convert ECMAScriptFunctionObject::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
790b21c8b5
LibJS: Convert Date::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
0eeb3164fa
LibJS: Convert DataView::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
efbd8ee072
LibJS: Convert BoundFunction::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
b48fa8756f
LibJS: Convert BooleanObject::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
cf0a24ff0c
LibJS: Convert BigIntObject::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
6528cbf51b
LibJS: Convert AsyncFromSyncIterator::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
4763cab323
LibJS: Convert ArrayIterator::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
947ea92bf6
LibJS: Convert ArrayBuffer::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
91b0123eaf
LibJS: Convert Array::create{,_from}() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
0c50751c13
LibJS: Convert AggregateError::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Linus Groh
2b92c15b34
LibJS: Convert Accessor::create() to NonnullGCPtr
2022-12-14 09:59:45 +00:00
Timothy Flynn
0ec433edce
LibJS: Explictly assert that a null GCPtr is not dereferenced
2022-12-14 09:59:35 +00:00
Luke Wilde
ce39c907fd
LibJS: Support MM/DD/YYYY HH:MM <timezone-offset> format for Date
...
Required by Discord to determine if it should show Christmas themed
loading tips on the loading screen.
Fixes #16473 .
2022-12-13 21:42:28 +00:00
Linus Groh
3b64610834
LibJS: Add spec comments to AggregateErrorConstructor
2022-12-12 21:26:12 +00:00
Linus Groh
172738222c
LibJS: Update get_substitution() section number & parameter name
2022-12-12 21:26:12 +00:00
Linus Groh
19ea0d8dcf
LibJS: Add spec comments to get_this_environment()
2022-12-12 21:26:12 +00:00
Linus Groh
c6638f53c0
LibJS: Add spec comments to new_object_environment()
2022-12-12 21:26:12 +00:00
Linus Groh
1cd46af7b0
LibJS: Add spec comments to new_declarative_environment()
2022-12-12 21:26:12 +00:00
Linus Groh
d51ab20aaa
LibJS: Add spec comment to length_of_array_like()
2022-12-12 21:26:12 +00:00
Linus Groh
e4b388ea5a
LibJS: Use modulo() for modulo operations in Value.cpp
2022-12-12 21:26:12 +00:00
Luke Wilde
2f3ebce7c8
LibJS: Keep GeneratorObject's stored execution context's internals alive
...
This would previously crash with a heap UAF when storing the result of
`yield 1` into `e` on the second `next` call:
```js
function* a() { const e = yield 1; }
b = a();
b.next();
gc();
b.next();
```
2022-12-12 13:58:32 +00:00
Luke Wilde
6431dd7904
LibJS: Make it possible to visit the edges of an ExecutionContext
2022-12-12 13:58:32 +00:00
Luke Wilde
40cc38869e
LibJS: Move ExecutionContext function implementations out of line
2022-12-12 13:58:32 +00:00
Linus Groh
ff5882291f
LibJS: Rename same_value_non_{numeric => number}() and handle BigInts
...
This is an editorial change in the ECMA-262 spec.
See: f660b14
Note that the explicit check for zero sign equality is no longer needed
as of b0d6399
, which removed the ability of Crypto::SignedBigInteger to
represent negative zero.
2022-12-10 11:35:20 +00:00
Linus Groh
78895984e9
LibJS: Add spec comments to Value::invoke_internal()
2022-12-10 11:23:23 +00:00
Linus Groh
14e5003ece
LibJS: Add spec comments to is_less_than()
2022-12-10 11:23:23 +00:00
Linus Groh
f1d8a64510
LibJS: Add spec comments to is_strictly_equal()
2022-12-10 11:23:23 +00:00