Commit Graph

4 Commits

Author SHA1 Message Date
叡山电车
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
1301e5b0af 🐛 function should return the same reference while it always bindable (#1612) 2021-07-29 10:21:44 +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