File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,6 @@ namespace xcpp
2828
2929        void  apply (const  std::string& code, nl::json& kernel_res) override 
3030        {
31- #if  defined(XEUS_CPP_EMSCRIPTEN_WASM_BUILD)
32-             //  WASM environment: Disable shell commands
33-             kernel_res[" status" " error" 
34-             kernel_res[" ename" " UnsupportedEnvironment" 
35-             kernel_res[" evalue" " Shell commands are not supported in the WASM environment." 
36-             kernel_res[" traceback" nl::json::array ();
37- #else 
38-             //  Native environment: Execute shell commands
3931            std::regex re (spattern + R"( (.*))" 
4032            std::smatch to_execute;
4133            std::regex_search (code, to_execute, re);
@@ -73,7 +65,6 @@ namespace xcpp
7365                kernel_res[" evalue" " evalue" 
7466                kernel_res[" traceback" nl::json::array ();
7567            }
76- #endif 
7768        }
7869
7970        [[nodiscard]] std::unique_ptr<xpreamble> clone () const  override 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments