You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of object internal methods include a parameter named Receiver in the spec, i.e. [[Get]]. As an example we have the code:
let o = {}
let o2 = {}
Object.defineProperty(o, 't', {
set: function(arg) {
console.log(arg)
},
});
Reflect.set(o, 't', 3)
Reflect.set(o, 't', 3, o2)
o2.t should remain undefined and console.log(3) should be invoked but instead it becomes 3 and console.log is not invoked.
This should be possible with the code in #1033 but with current implementation of [[Get]] it is not possible.
A lot of object internal methods include a parameter named
Receiver
in the spec, i.e.[[Get]]
. As an example we have the code:o2.t
should remainundefined
andconsole.log(3)
should be invoked but instead it becomes3
andconsole.log
is not invoked.This should be possible with the code in #1033 but with current implementation of
[[Get]]
it is not possible.[[Get]]
:boa/boa/src/object/internal_methods.rs
Lines 72 to 74 in 553ea52
[[Set]]
:boa/boa/src/object/internal_methods.rs
Lines 95 to 97 in 553ea52
Only other instances I can find in the spec are for exotic objects, which I don't think are currently implemented.
The text was updated successfully, but these errors were encountered: