Commit Graph

29 Commits

Author SHA1 Message Date
Kuitos
e75952faed
️ remove object spread operator for faster performance in big array iterator (#2812) 2023-11-15 16:19:33 +08:00
Kuitos
3524195989
🐛not rebind non-native global properties (#2733) 2023-10-18 01:52:52 -05:00
Kuitos
7328396c30
🐛compatible with vConsole who will wrap global variables with proxy (#2630) 2023-08-23 16:41:10 +08:00
Kuitos
dd6aa4a042
patch sandbox document to aviod chaos of dynamic element appending when speedy mode enabled (#2404) 2023-02-22 01:12:43 +08:00
Kuitos
ab2c29737e
🐛 compatible with legacy browser which not support globalThis in speedy mode (#2400) 2023-02-16 21:30:23 +08:00
Kuitos
bac5e2ac69
🐛window variable should in with lexical scope while speedy mode enabled (#2390) 2023-02-10 11:34:09 +08:00
Kuitos
743473ae51
enable speedy sandbox mode by default (#2320) 2022-10-30 19:37:58 +08:00
Kuitos
e5a175caa4
import global variables from https://github.com/sindresorhus/globals/blob/main/globals.json (#2288) 2022-10-05 15:50:57 +08:00
Kuitos
73a507f891
🐛 frozen property must be returned its actual value rather than bound value (#2285) 2022-09-26 21:59:24 +08:00
xioozq
0aaf55a77f
🐛 proxy sandbox should not overwrite read-only fields. (#2123) 2022-09-26 20:22:20 +08:00
Kuitos
7f517264bb
️ add speedy mode for sandbox to improve performance (#2271) 2022-09-18 22:28:46 +08:00
叡山电车
e807cbcfb6 🐛 keep toString always return original value for function in sandbox (#1785)
* fix: correct toString for functions

* Update src/sandbox/common.ts

* Update src/sandbox/common.ts

* handle getter in toString descriptor

* toString function predict

Co-authored-by: Kuitos <kuitos.lau@gmail.com>
2021-11-04 17:19:36 +08:00
Kuitos
c4b604228a remove global way for recording current running sandbox to fix nested scenario (#1723)
*  remove global way for recording current running sandbox to support parallel multiple instance

* export internal getCurrentRunningApp API

Co-authored-by: tli4 <a@tianyi.li>
2021-09-15 22:54:44 +08:00
Troy Li
ad7feadd29 add internal getCurrentRunningApp api (#1697) 2021-09-09 17:59:53 +08:00
Kuitos
44ccad92de ️ fix the performance issue in sandbox (#1626) 2021-08-02 21:04:28 +08:00
Kuitos
1301e5b0af 🐛 function should return the same reference while it always bindable (#1612) 2021-07-29 10:21:44 +08:00
Kuitos
761287ac3b 🎨 optimize current proxy setting logic (#1486) 2021-07-27 21:14:42 +08:00
Kuitos
3880cd5078 add window reference binding test (#1524) 2021-06-22 00:37:51 +08:00
Kuitos
60ce3982cc 🏁 fix that it might throw a TypeError about reassign a readonly property error meesage in Safari (#1408) 2021-04-23 17:13:54 +08:00
Kuitos
6953ba3d0b 🐛 constructable checking should not be cached if the function prototype function was added after first running (#1381) 2021-04-13 14:24:48 +08:00
Kuitos
aa84eaa289 🚨 upgrade to follow eslint new rules (#1179) 2020-12-24 12:25:36 +08:00
Kuitos
107484d71b 🏁 compatible with old browser (#1136) 2020-12-08 20:06:14 +08:00
Kuitos
a023a5c9b7 ️ avoid duplicate value check to improve performance (#1134) 2020-12-08 14:40:10 +08:00
Kuitos
fbbd6f1722 🐛 use Function.prototype.bind instead to avoid conflict while value has own bind function (#1133) 2020-12-08 14:34:45 +08:00
Kuitos
3fa008be96 hijack dynamic document appending in evalling code (#1052) 2020-11-05 17:03:05 +08:00
Kuitos
8ede338a52 ️ use weakmap to instead symbol (#1002) 2020-10-15 20:57:51 +08:00
Kuitos
1446c6b212 ️ optimize sandbox performance (#978) 2020-10-12 15:20:33 +08:00
Kuitos
2319edf022 🐛 copy function prototype if it had while we create a new function using bind (#977) 2020-10-09 19:52:40 +08:00
Kuitos
a889c992b9 revert UIEvent patch (#885) 2020-08-21 15:07:24 +08:00