mirror of
https://github.com/cincheo/jsweet.git
synced 2025-12-15 07:19:22 +00:00
added first support for JavaScript this and arguments
This commit is contained in:
parent
21a4cad82b
commit
e39515891a
@ -648,4 +648,19 @@ public final class Lang {
|
||||
EXPORTED_VARS.get().put("_exportedVar_" + name, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accesses the current method arguments (<code>arguments</code> implicit variable in
|
||||
* JavaScript).
|
||||
*/
|
||||
public static final Object[] arguments = null;
|
||||
|
||||
/**
|
||||
* Accesses the current JavaScript <code>this</code>. Within an object
|
||||
* scope, <code>$this</code> corresponds to a regular object oriented
|
||||
* <code>this</code>. Outside on an object (i.e. within a global function),
|
||||
* <code>$this</code> has the JavaScript meaning, representing the current
|
||||
* function object.
|
||||
*/
|
||||
public static final Object $this = null;
|
||||
|
||||
}
|
||||
|
||||
@ -648,4 +648,19 @@ public final class Lang {
|
||||
EXPORTED_VARS.get().put("_exportedVar_" + name, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* Accesses the current method arguments (arguments implicit variable in
|
||||
* JavaScript).
|
||||
*/
|
||||
public static final Object[] arguments = null;
|
||||
|
||||
/**
|
||||
* Accesses the current JavaScript <code>this</code>. Within an object
|
||||
* scope, <code>$this</code> corresponds to a regular object oriented
|
||||
* <code>this</code>. Outside on an object (i.e. within a global function),
|
||||
* <code>$this</code> has the JavaScript meaning, representing the current
|
||||
* function object.
|
||||
*/
|
||||
public static final Object $this = null;
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user