from .base_executor import ScriptExecutor
from dmoj.judgeenv import env


class Executor(ScriptExecutor):
    ext = '.js'
    name = 'V8JS'
    command = 'v8dmoj'
    test_program = 'print(gets());'
    address_grace = 786432
    fs = []  # v8dmoj binaries are distributed statically linked

@@ -39,38 +39,8 @@
 tor%0A
-from dmoj.judgeenv import env%0A
 %0A%0Acl
@@ -199,16 +199,24 @@
   fs = %5B
+'*.%5C.js'
 %5D  # v8d

Allow .js for VSJS; #77