* 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>
16 lines
262 B
JavaScript
16 lines
262 B
JavaScript
var foo, bar;
|
|
|
|
expect(
|
|
() => [foo, bar] = undefined
|
|
).toThrow(/destructure non-iterable/);
|
|
|
|
expect(
|
|
() => [foo, bar] = {}
|
|
).toThrow(/destructure non-iterable/);
|
|
|
|
global.Symbol = void 0;
|
|
|
|
expect(
|
|
() => [foo, bar] = {}
|
|
).toThrow(/destructure non-iterable/);
|