summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authordavidot <david.tuin@gmail.com>2021-09-30 00:36:28 +0200
committerLinus Groh <mail@linusgroh.de>2021-09-30 08:16:32 +0100
commit5611285312e1125a0daf3d6e4c116bb0180527bd (patch)
tree6b562e5e74513f18070d0714423a2726e028d770 /AK
parente5d48ee238b58e82660edf286a1942e800493621 (diff)
downloadserenity-5611285312e1125a0daf3d6e4c116bb0180527bd.zip
SpreadSheet: Fix that the js integration abused global objects
Before this commit it only allocated the global object so when it wanted to lookup 'thisSheet' it could not find it in the global environment. We now hotswap the global object everytime a cell evaluated. This also fixes that SheetGlobalObject did not have an internal_has_property meaning 'A0' could not be referenced unless it was via a member lookup (this.A0). This was already broken before the bindings refactoring. The correct behavior of realms in spreadsheet is not completely clear since what is shared between sheets is not very well defined. The reason that just setting the SheetGlobalObject as the global_this_value is not enough is because ECMAScript does not check the global_this_value for members when resolving a reference in the global environment.
Diffstat (limited to 'AK')
0 files changed, 0 insertions, 0 deletions