forked from EmpowermentZone/EdSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JsSupport.js
41 lines (37 loc) · 823 Bytes
/
JsSupport.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
May 6, 2017
Copyright 2006-2017 by Jamal Mazrui
GNU Lesser General Public License (LGPL)
*/
import EdSharp;
import Accessibility;
import Microsoft.VisualBasic;
import System;
import System.Collections;
import System.ComponentModel;
import System.Data;
import System.Diagnostics;
import System.Drawing;
import System.IO;
import System.Reflection;
import System.Runtime.InteropServices;
import System.Text;
import System.Text.RegularExpressions;
import System.Web;
import System.Windows.Forms;
import System.Xml;
public class JS {
static function Eval(sCode : String) {
return Eval(sCode, []);
} // Eval method
static function Eval(sCode : String , oParams : Object[]) {
try {
var o = eval(sCode, "unsafe");
return o;
}
catch (e) {
//MessageBox.Show("Error!", e.Message);
return null;
}
} // Eval method
} // JS class