mirror of
https://github.com/morluto/rea.git
synced 2026-11-06 14:56:32 +00:00
fix(javascript): preserve local reference store ownership
This commit is contained in:
1 parent
59553c76be
commit
07005b8fe6
5 files changed
+29
-2
No files matched your search
@@ -81,6 +81,7 @@ it.each([
|
||||
'const box = {}; box.prototype = Map.prototype; box.prototype.get = fetch; new Map().get("/accounts")',
|
||||
'const box = {}; box.p = (anything(), Map.prototype); patch(box); new Map().get("/accounts")',
|
||||
'window.prototype = Map.prototype; new Map().get("/accounts")',
|
||||
'const box = { set prototype(value) { patch(value); } }; box.prototype = Map.prototype; new Map().get("/accounts")',
|
||||
'const box = new ExternalBox(); box.prototype = Map.prototype; new Map().get("/accounts")',
|
||||
'function expose(box) { box.prototype = Map.prototype; } new Map().get("/accounts")',
|
||||
'const factory = { make() { return Map.prototype; } }; factory.make().get = fetch; new Map().get("/accounts")',
|
||||
|
||||
Reference in new issue
Block a user