Commit Graph

32 Commits

Author SHA1 Message Date
Sam Rose 332a201ae7
Revert "Migrate from `vm` to `isolated-vm`" 2024-02-02 09:51:46 +00:00
Adria Navarro 45ea6a6fd6
Revert "Revert "Migrate from `vm` to `isolated-vm`"" 2024-02-01 16:47:41 +01:00
Adria Navarro 16749ec3dd
Revert "Migrate from `vm` to `isolated-vm`" 2024-02-01 16:30:34 +01:00
Adria Navarro ed7b89f2f9 Move jsRunner to folder 2024-01-31 17:49:55 +01:00
Adria Navarro 507aa8af93 Simplify and remove magic strings 2024-01-31 17:05:20 +01:00
Adria Navarro 805b24975b Allow configuring memory limits 2024-01-31 16:55:59 +01:00
Adria Navarro 60dc6822cf Run only once 2024-01-31 12:41:34 +01:00
Adria Navarro 37033dd468 Handle js timeouts 2024-01-24 18:03:09 +01:00
Sam Rose cc363f1ba7
Fix server tests. 2024-01-24 16:18:56 +00:00
Sam Rose 1c3069178f
Attempt to fix tests. 2024-01-24 15:56:17 +00:00
Adria Navarro bc7825dc93 Keep isolateRefs in context 2024-01-24 14:02:34 +01:00
Adria Navarro 915482a915 Configure cypto 2024-01-19 10:59:48 +01:00
Adria Navarro 262dbc7c2b Inject url 2024-01-18 13:49:47 +01:00
Adria Navarro 9949b08879 Add regex functions 2024-01-17 14:25:17 +01:00
Adria Navarro 807e9f1687 Use compiled module (working with hacked bundle!) 2024-01-16 17:27:24 +01:00
Adria Navarro d49b17db53 Improve error message 2024-01-15 13:06:07 +01:00
Adria Navarro eb69b36aac Use esbuild for jsrunner 2024-01-15 12:30:47 +01:00
Adria Navarro 73fee7dec7 Fix build 2024-01-15 12:04:35 +01:00
Sam Rose 6be7814e55
Copy context over, ignoring functions. 2024-01-12 15:22:49 +00:00
Sam Rose c508a435d6
Isolate and context re-use. 2024-01-12 15:08:08 +00:00
Sam Rose 290dde125e
Merge master. 2024-01-12 14:56:10 +00:00
Sam Rose 19bd2726b3
Move traces around in runJS to further pinpoint where time is spent. 2024-01-10 10:07:41 +00:00
Sam Rose d5850d59de
Add bool to show when execution tracker gets created. 2024-01-08 09:52:07 +00:00
Sam Rose 6c20799b92
Extra traces inside of runJS to find out where time is being used. 2024-01-08 09:49:32 +00:00
Sam Rose 1abfba5253
WIP 2024-01-08 09:42:54 +00:00
Sam Rose 58abca62de
work in progress: replace vm2 and vm with isolated-vm 2024-01-05 13:48:20 +00:00
Sam Rose 68468fadb3
Add an extra JS execution time limit check to prevent creating unnecesary VM context. 2024-01-04 10:10:00 +00:00
Sam Rose 642b75e0ae
Revert "Remove all custom tracing to see if it's the cause of the memory leak." 2024-01-02 11:36:32 +00:00
Sam Rose df73cbd001
Fix lint warning. 2023-12-21 11:13:39 +00:00
Sam Rose 3c0901f530
Remove all custom tracing to see if it's the cause of the memory leak. 2023-12-21 11:06:05 +00:00
Sam Rose 2e58f2cdde
Add traces to track running arbitrary JS. 2023-12-19 18:20:13 +00:00
Sam Rose 4093f311c9
Respond to PR feedback. 2023-12-19 09:47:12 +00:00