Support expressions in rest arg access
The current implementation assumes a numeric literal although it just checks the base type.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
var t = function (f) {
|
||||
arguments[0];
|
||||
arguments[arguments.length - 1];
|
||||
arguments.length <= 1 ? undefined : arguments[1];
|
||||
arguments.length <= arguments.length - 1 - 1 + 1 ? undefined : arguments[arguments.length - 1 - 1 + 1];
|
||||
};
|
||||
|
||||
function t(f) {
|
||||
|
||||
Reference in New Issue
Block a user