Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

commit

Vasek Mlejnsky65e383a38b89
diff --git a/api-service/codegen/tools/playground/playground.py b/api-service/codegen/tools/playground/playground.py
index f2ab38c80..6dc530b70 100644
--- a/api-service/codegen/tools/playground/playground.py
+++ b/api-service/codegen/tools/playground/playground.py
@@ -170,18 +170,12 @@ class NodeJSPlayground(Playground):
def run_javascript_code(self, code: str, timeout: float = run_code_timeout):
print(f"Running javascript code: {code}")
self.write_file(self.default_javascript_code_file, code)
-<<<<<<< HEAD
- return self.run_command(
-=======
process_id = self.start_process(
->>>>>>> 6d5d90a03e7d1dcf76849c1ac93a269b1d9600da
f"node {self.default_javascript_code_file}",
rootdir=self.rootdir,
env_vars=self.env_vars,
)
-<<<<<<< HEAD
-=======
# For now we always wait the full timeout interval
time.sleep(timeout)
@@ -189,7 +183,6 @@ class NodeJSPlayground(Playground):
result = self.stop_process(process_id)
print(result)
return result
->>>>>>> 6d5d90a03e7d1dcf76849c1ac93a269b1d9600da
def run_typescript_code(self, code: str, typecheck: bool = False):
self.write_file(self.default_typescript_code_file, code)