Blame view

node_modules/es5-ext/test/array/#/last.js 315 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  "use strict";
  
  exports.__generic = function (t, a) {
  	a(t.call(this), this[this.length - 1]);
  };
  
  exports[""] = function (t, a) {
  	var x;
  	a(t.call([]), undefined, "Empty");
  	a(t.call(new Array(234), undefined, "Sparse empty"));
  	x = new Array(2342);
  	x[434] = {};
  	x[450] = {};
  	a(t.call(x), x[450], "Sparse");
  };