adder-script
Version:
Python like language to execute untrusted codes in browsers and Node.js.
1,027 lines • 244 kB
JavaScript
��/ * !
* Q U n i t 2 . 0 . 0
* h t t p s : / / q u n i t j s . c o m /
*
* C o p y r i g h t j Q u e r y F o u n d a t i o n a n d o t h e r c o n t r i b u t o r s
* R e l e a s e d u n d e r t h e M I T l i c e n s e
* h t t p s : / / j q u e r y . o r g / l i c e n s e
*
* D a t e : 2 0 1 6 - 0 6 - 1 6 T 1 7 : 0 9 Z
* /
( f u n c t i o n ( g l o b a l ) {
v a r Q U n i t = { } ;
v a r D a t e = g l o b a l . D a t e ;
v a r n o w = D a t e . n o w | | f u n c t i o n ( ) {
r e t u r n n e w D a t e ( ) . g e t T i m e ( ) ;
} ;
v a r s e t T i m e o u t = g l o b a l . s e t T i m e o u t ;
v a r c l e a r T i m e o u t = g l o b a l . c l e a r T i m e o u t ;
/ / S t o r e a l o c a l w i n d o w f r o m t h e g l o b a l t o a l l o w d i r e c t r e f e r e n c e s .
v a r w i n d o w = g l o b a l . w i n d o w ;
v a r d e f i n e d = {
d o c u m e n t : w i n d o w &