Luke
200c7572b7
LibJS: Implement Object.prototype.propertyIsEnumerable
...
Spec: https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
This is used by core-js, which is used by frameworks such as Vue.
2020-12-24 21:00:28 +01:00
Linus Groh
06a3625545
LibJS: Set prototype of GlobalObject to ObjectPrototype
...
As the global object is constructed and initialized in a different way
than most other objects we were not setting its prototype! This made
things like "globalThis.toString()" fail unexpectedly.
2020-11-07 10:08:05 +01:00
Linus Groh
2645dfafcf
LibJS: Implement Object(value) constructor
...
Not sure why we didn't have this yet, it's super simple :^)
2020-11-04 23:06:44 +01:00
Linus Groh
a5bf6cfff9
LibJS: Don't change offset when reconfiguring property in unique shape
...
When changing the attributes of an existing property of an object with
unique shape we must not change the PropertyMetadata offset.
Doing so without resizing the underlying storage vector caused an OOB
write crash.
Fixes #3735 .
2020-10-10 23:25:00 +02:00
Matthew Olsson
5ecd504f4e
LibJS: Implement spec-compliant Object.prototype.toString
2020-07-11 23:13:29 +02:00
Matthew Olsson
119386ffb0
LibJS: Add tests for symbol object integration
2020-07-09 23:33:00 +02:00
Matthew Olsson
93ebd320ef
LibJS: Object.preventExtensions should allow property modfication
...
Existing properties on a non-extensible object should be changable and
deletable.
2020-07-07 10:47:10 +02:00
Matthew Olsson
1ef573eb30
LibJS: Indent tests with 4 spaces instead of 2
2020-07-06 23:40:35 +02:00
Matthew Olsson
6d58c48c2f
test-js: Use prettier and format all files
2020-07-06 23:40:35 +02:00
Matthew Olsson
3f97d75778
LibJS: Convert most builtin tests to new system
2020-07-06 23:40:35 +02:00
Matthew Olsson
4c48c9d69d
LibJS: Reorganize tests into subfolders
2020-07-03 19:30:13 +02:00