* Run exec tests in fresh contexts * Reevaluate modules in every context * Cache module code when running tests * Eliminate weakmap accesses as much as possible * Remove old multiline usage * Using bundled polyfill to significantly increase performance The individual requires for each file were the part that was sooooo slow. * Drop LRU cache size * Fixes * Fix test Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
10 lines
163 B
JavaScript
10 lines
163 B
JavaScript
var a = (() => [1, 2, 3])();
|
|
|
|
// Simulate old environment
|
|
global.Symbol = void 0;
|
|
|
|
var [first, ...rest] = a;
|
|
|
|
expect(first).toBe(1);
|
|
expect(rest).toEqual([2, 3]);
|