file_path
stringlengths
3
280
file_language
stringclasses
66 values
content
stringlengths
1
1.04M
repo_name
stringlengths
5
92
repo_stars
int64
0
154k
repo_description
stringlengths
0
402
repo_primary_language
stringclasses
108 values
developer_username
stringlengths
1
25
developer_name
stringlengths
0
30
developer_company
stringlengths
0
82
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_array_unpack_optimisation.js
JavaScript
var a = 1, b = 2; var a = 1, b = 2; var a = 1, b = 2, c = [ 3, 4 ]; var a = 1, b = 2, c = [ 3, 4 ]; var _ref = [ 1, 2, 3 ], a = _ref[0], b = _ref[1]; var _ref1 = [ 1, 2, 3 ], a = _ref1[0], b = _ref1[1]; var _ref2 = [ a, b ], a = _ref2[0], b = _ref2[1]; var ref; ref = [ a[1], a[0] ], a[0] = ref[0], a[1] = ref[1], ref; var _to_consumable_array_concat = _sliced_to_array(_to_consumable_array(foo).concat([ bar ]), 2), a = _to_consumable_array_concat[0], b = _to_consumable_array_concat[1]; var _ref3 = [ foo(), bar ], a = _ref3[0], b = _ref3[1]; var _ref4 = [ clazz.foo(), bar ], a = _ref4[0], b = _ref4[1]; var _ref5 = [ clazz.foo, bar ], a = _ref5[0], b = _ref5[1]; var a, b = 2; a = 1, b = 2; a = void 0, b = 2; ; // Avoid completion record special case
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_assignment_arrow_function_block.js
JavaScript
()=>{ a = 1, b = 2; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_assignment_arrow_function_no_block.js
JavaScript
var ref; ()=>(ref = [ 1, 2 ], a = ref[0], b = ref[1], ref);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_assignment_expression_pattern.js
JavaScript
var z = {}; var tmp = z.x, y = (tmp === void 0 ? {} : tmp).y;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_assignment_statement.js
JavaScript
var ref; ref = f(), a = ref[0], b = ref[1], ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_assignment_statement_no_loose.js
JavaScript
var ref; ref = _sliced_to_array(f(), 2), a = ref[0], b = ref[1], ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_es7_object_rest.js
JavaScript
var z = {}; var x = _extends({}, _object_destructuring_empty(z)); var x = z.x, y = _object_without_properties(z, [ "x" ]); var x = z[x], y = _object_without_properties(z, [ x ].map(_to_property_key)); (function(_param) { var x = _param.x, y = _object_without_properties(_param, [ "x" ]); }); var _o; var ref; _o = o, z = _object_without_properties(_o, [ "x", "y" ]), ref = _o, x = ref.x, y = ref.y, ref, _o;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_for_in.js
JavaScript
for(var _$ref in obj){ var _ref = _sliced_to_array(_$ref, 2), _$name = _ref[0], _$value = _ref[1]; print("Name: " + _$name + " Value: " + _$value); } var _$ref1; for(ref in obj){ _$ref1 = _sliced_to_array(ref, 2), _$name = _$ref1[0], _$value = _$ref1[1], _$ref1; print("Name: " + _$name + " Value: " + _$value); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_for_in_loose.js
JavaScript
for(var _$ref in obj){ var _$name = _$ref[0], _$value = _$ref[1]; print("Name: " + _$name + " Value: " + _$value); } var _$ref1; for(ref in obj){ _$ref1 = ref, _$name = _$ref1[0], _$value = _$ref1[1], _$ref1; print("Name: " + _$name + " Value: " + _$value); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_for_of.js
JavaScript
for (var _$ref of test.expectation.registers){ var _ref = _sliced_to_array(_$ref, 3), _$name = _ref[0], _$before = _ref[1], _$after = _ref[2]; } var _$ref1; for (ref of test.expectation.registers){ _$ref1 = _sliced_to_array(ref, 3), _$name = _$ref1[0], _$before = _$ref1[1], _$after = _$ref1[2], _$ref1; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_issue_5744.js
JavaScript
var ref; if (true) ref = [ b, a ], a = ref[0], b = ref[1], ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_issue_9834.js
JavaScript
var input = {}; var _key = prefix + 'state', _key1 = `${prefix}consents`, givenName = input.given_name, lastName = input['last_name'], country = input[`country`], state = input[_key], consents = input[_key1], rest = _object_without_properties(input, [ "given_name", 'last_name', `country`, _key, _key1 ].map(_to_property_key));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_mixed.js
JavaScript
var rect = {}; var _rect_topLeft = _sliced_to_array(rect.topLeft, 2), x1 = _rect_topLeft[0], y1 = _rect_topLeft[1], _rect_bottomRight = _sliced_to_array(rect.bottomRight, 2), x2 = _rect_bottomRight[0], y2 = _rect_bottomRight[1];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_object_advanced.js
JavaScript
var rect = {}; var _rect_topLeft = rect.topLeft, x1 = _rect_topLeft.x, y1 = _rect_topLeft.y, _rect_bottomRight = rect.bottomRight, x2 = _rect_bottomRight.x, y2 = _rect_bottomRight.y; var _ref = [ 0, 1, 2, 3, 4, 5, 6 ], foo = _ref[3], bar = _ref[5];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_object_basic.js
JavaScript
var coords = [ 1, 2 ]; var x = coords.x, y = coords.y;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_parameters.js
JavaScript
function somethingAdvanced(param, p2, p3) { var tmp = param.topLeft, _ref = tmp === void 0 ? {} : tmp, x1 = _ref.x, y1 = _ref.y, tmp1 = param.bottomRight, _ref1 = tmp1 === void 0 ? {} : tmp1, x2 = _ref1.x, y2 = _ref1.y; } function unpackObject(param) { var title = param.title, author = param.author; return title + " " + author; } console.log(unpackObject({ title: "title", author: "author" })); var unpackArray = function(param, param1) { var _param = _sliced_to_array(param, 3), a = _param[0], b = _param[1], c = _param[2], _param1 = _sliced_to_array(param1, 3), x = _param1[0], y = _param1[1], z = _param1[2]; return a + b + c; }; console.log(unpackArray([ "hello", " ", "world" ], [ 1, 2, 3 ]));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/destructuring_spread.js
JavaScript
function isSorted(param) { var _param = _to_array(param), x = _param[0], y = _param[1], wow = _param.slice(2); if (!zs.length) return true; if (y > x) return isSorted(zs); return false; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/empty.js
JavaScript
var _ref = [ "foo", "hello", [ " ", "junk" ], [ "world" ] ], a = _ref[1], _ref_ = _ref[2], b = _ref_[0], _ref_1 = _ref[3], c = _ref_1[0], d = _ref[4];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/export_variable_issue_2858_1.js
JavaScript
var _ref = { a: 1, b: 2 }; export const a2 = _ref.a, b2 = _ref.b;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/export_variable_issue_2858_2.js
JavaScript
var _ref = { a: 1 }; export const b = _ref.a;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/export_variable_issue_2858_3.js
JavaScript
var _ref = { a: 1, b: { c: 1 } }, _ref_b = _ref.b; export const a1 = _ref.a, b1 = _ref.b, c1 = _ref_b.c;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/for_const_dstr_ary_ptrn_elem_id_init_hole.js
JavaScript
var iterCount = 0; for(const x = 23; iterCount < 1;){ assert.sameValue(x, 23); // another statement iterCount += 1; } assert.sameValue(iterCount, 1, 'Iteration occurred as expected');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/for_in.js
JavaScript
for(var ref in obj){ let name = ref[0], value = ref[1]; print("Name: " + name + " Value: " + value); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/for_let.js
JavaScript
for(let i = range[0], n = range[1];;){}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/for_of.js
JavaScript
for (var ref of test.expectation.registers){ let name = ref[0], before = ref[1], after = ref[2]; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_1477_1.js
JavaScript
const _b_ = b[0], tmp = _b_.a, a_ = tmp === void 0 ? 1 : tmp;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_1477_2.js
JavaScript
async function f(a, b) { const _JSON_parse = JSON.parse(b), _JSON_parse_ = _JSON_parse[0], tmp = _JSON_parse_.a, a_ = tmp === void 0 ? 1 : tmp; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_1477_3.js
JavaScript
const tmp = b[0], a = tmp === void 0 ? 1 : tmp;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_1477_4.js
JavaScript
var ref, ref1; ref = b, ref1 = ref[0], a = ref1 === void 0 ? 1 : ref1, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_169.js
JavaScript
export class Foo { func(a, ref) { let b = ref === void 0 ? Date.now() : ref; return { a }; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_1948.js
JavaScript
var fn2 = function(arg1, param, arg2, param1) { var opt1 = param.opt1, opt2 = param.opt2, opt3 = param1.opt3, opt4 = param1.opt4; for(var _len = arguments.length, arg3 = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++){ arg3[_key - 4] = arguments[_key]; } console.log(arg1, opt1, opt2, arg2, opt3, opt4, arg3); }; function fn3(arg1, param, arg2, param1) { var opt1 = param.opt1, opt2 = param.opt2, opt3 = param1.opt3, opt4 = param1.opt4; for(var _len = arguments.length, arg3 = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++){ arg3[_key - 4] = arguments[_key]; } console.log(arg1, opt1, opt2, arg2, opt3, opt4, arg3); } ; class cls { fn4(arg1, param, arg2, param1) { var opt1 = param.opt1, opt2 = param.opt2, opt3 = param1.opt3, opt4 = param1.opt4; for(var _len = arguments.length, arg3 = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++){ arg3[_key - 4] = arguments[_key]; } console.log(arg1, opt1, opt2, arg2, opt3, opt4, arg3); } fn5(arg1, arg2) { console.log(arg1, arg2); } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_260_01.js
JavaScript
var ref, ref1; ref = [], ref1 = ref[0], code = ref1 === void 0 ? 1 : ref1, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_260_02.js
JavaScript
var ref, ref1; ref = [], ref1 = ref[0], code = ref1 === void 0 ? 1 : ref1, rest = ref.slice(1), ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_2819.js
JavaScript
const first = "red", third = "green";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_2821.js
JavaScript
const _ref = [ 1 ], x = _ref[0], y = _ref[1], z = _ref.slice(2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_2841.js
JavaScript
function foo(a, b) { var ref; ref = Array.prototype.slice.call(arguments), a = ref[0], b = ref[1], restParam = ref.slice(2), ref; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_2841_loose.js
JavaScript
function foo(a, b) { var ref; ref = arguments, a = ref[0], b = ref[1], restParam = ref.slice(2), ref; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_311.js
JavaScript
const Foo = 'foo'; const bar = { [Foo]: { qux: 'baz' } }; const qux = bar[Foo].qux;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_317.js
JavaScript
export const A = 1, B = 2, C = 3; export const E = 4, D = 5, F = 6;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_3315_1.js
JavaScript
var baz = 1; var ref, ref1; ref = {}, ref1 = ref.foo, bar = ref1 === void 0 ? baz : ref1, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_3315_2.js
JavaScript
var baz = 1; var ref, ref1; ref = [], ref1 = ref[0], bar = ref1 === void 0 ? baz : ref1, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_336.js
JavaScript
const fooBar = baz['foo-bar'];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_404_1.js
JavaScript
function foo(bar) { const foo = bar.foo; return foo; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_404_2.js
JavaScript
function foo(bar) { var foo = bar.foo; return foo; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_404_3.js
JavaScript
function foo(bar) { var foo1 = bar.foo; return foo1; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_6304.js
JavaScript
let _ref = [];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_6304_1.js
JavaScript
let _ref = [ , ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/issue_6304_2.js
JavaScript
let _ref = [ ...[ 1, 2, 3 ] ];
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/known_array.js
JavaScript
var z = []; var x = z[0], y = z.slice(1);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/member_expr.js
JavaScript
foo.foo = 1, foo.bar = 2;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/multiple.js
JavaScript
var coords = [ 1, 2 ]; var x = coords.x, y = coords.y, foo = "bar";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/need_to_array.js
JavaScript
const _o = _to_array(o), x = _o[0], y = _o[1], z = _o.slice(2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/need_to_array_loose.js
JavaScript
const x = o[0], y = o[1], z = o.slice(2);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/next_001.js
JavaScript
const NODE_ENV = process.env.NODE_ENV;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/next_002.js
JavaScript
NODE_ENV = process.env.NODE_ENV;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/obj_assign_expr.js
JavaScript
let a; var ref, ref1, ref2; ref = foo, ref1 = ref[0], ref2 = ref1.a, a = ref2 === void 0 ? 1 : ref2, ref1, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/obj_assign_pat.js
JavaScript
let _foo_a = foo.a, a = _foo_a === void 0 ? 1 : _foo_a;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/object_pat_assign_prop.js
JavaScript
var ref, ref1; ref = {}, ref1 = ref.code, code = ref1 === void 0 ? 1 : ref1, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/object_pat_assign_prop_2.js
JavaScript
const _ref = {}, _ref_code = _ref.code, code = _ref_code === void 0 ? 1 : _ref_code;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/object_pat_assign_prop_binding.js
JavaScript
var ref, ref1; ref = {}, ref1 = ref.foo, bar = ref1 === void 0 ? 1 : ref1, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/object_pat_assign_prop_binding_2.js
JavaScript
const _ref = {}, tmp = _ref.foo, bar = tmp === void 0 ? 1 : tmp;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/object_pat_assign_prop_binding_isseu_2850.js
JavaScript
var ref, ref1, ref2; const obj = (ref = { foo: 24, bar: 45 }, ref1 = ref.foo, foo = ref1 === void 0 ? 123 : ref1, ref2 = ref.bar, x = ref2 === void 0 ? 123 : ref2, ref);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/regression_8528.js
JavaScript
function isBetween(x, a, b) { var ref; if (a > b) ref = [ b, a ], a = ref[0], b = ref[1], ref; return x > a && x < b; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/spread_test.js
JavaScript
function isSorted(ref) { let x = ref[0], y = ref[1], wow = ref.slice(2); if (!zs.length) return true; if (y > x) return isSorted(zs); return false; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_const_dstr_ary_ptrn_elem_id_init_hole.js
JavaScript
const x = 23; assert.sameValue(x, 23);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_const_dstr_ary_ptrn_elem_id_init_hole_2.js
JavaScript
const x = 23, y = 42;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_const_dstr_ary_ptrn_elem_id_init_hole_3.js
JavaScript
const x = 23, y = 42;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_const_dstr_ary_ptrn_elem_id_init_hole_4.js
JavaScript
function* foo() { yield 1; yield 2; } let bar = foo(); const _ref = [ , bar.next().value ], tmp = _ref[0], x = tmp === void 0 ? bar.next().value : tmp, y = _ref[1]; console.log(x, y);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_const_id_init_hole.js
JavaScript
const x = void 0; const y = void 0, z = void 0;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_let_dstr_ary_ptrn_elem_id_init_hole.js
JavaScript
let x = 23; assert.sameValue(x, 23);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_let_dstr_ary_ptrn_elem_id_init_hole_2.js
JavaScript
var ref, ref1; let y = (ref = [ , ], ref1 = ref[0], x = ref1 === void 0 ? 23 : ref1, ref);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/statements_let_id_init_hole.js
JavaScript
let x;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/combination_no_dupes.js
JavaScript
var x = { a: 5, b: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/dup_keys_both_quoted.js
JavaScript
var x = { "a\n b": 5, ["a\n b"]: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/dup_keys_dupes.js
JavaScript
var x = { a: 5, ["a"]: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/dup_keys_getter.js
JavaScript
var x = { a: 5, get ["a"] () { return 6; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/dup_keys_getter_and_setter.js
JavaScript
var x = { get a () {}, set a (x){}, get ["a"] () {}, set ["a"] (x){}, ["a"]: 3, b: 4, get ["b"] () {}, set ["b"] (x){}, get c () {}, ["c"]: 5, set ["c"] (x){}, set d (x){}, ["d"]: 6, get ["d"] () {} };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/dup_keys_one_quoted.js
JavaScript
var x = { a: 5, ["a"]: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/duplicate_keys_both_quoted.js
JavaScript
var x = { "a\n b": 5, ["a\n b"]: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/duplicate_keys_dupes.js
JavaScript
var x = { a: 5, ["a"]: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/duplicate_keys_getter.js
JavaScript
var x = { a: 5, get ["a"] () { return 6; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/duplicate_keys_getters_and_setters.js
JavaScript
var x = { get a () {}, set a (x){}, get ["a"] () {}, set ["a"] (x){}, ["a"]: 3, b: 4, get ["b"] () {}, set ["b"] (x){}, get c () {}, ["c"]: 5, set ["c"] (x){}, set d (x){}, ["d"]: 6, get ["d"] () {} };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/duplicate_keys_no_dupes.js
JavaScript
var x = { a: 5, b: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/duplicate_keys_one_quoted.js
JavaScript
var x = { a: 5, ["a"]: 6 };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_duplicated_keys.rs/issue_203.js
JavaScript
const obj = {}; obj.prop = { alpha: { charlie: true }, beta: { charlie: true, delta: true } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of.js
JavaScript
let elm; for(let _i = 0; _i < array.length; _i++){ elm = array[_i]; console.log(elm); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of_array_pattern.js
JavaScript
let elm; for(let _i = 0; _i < array.length; _i++){ [elm] = array[_i]; console.log(elm); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of_declaration.js
JavaScript
for(let _i = 0; _i < array.length; _i++){ const elm = array[_i]; console.log(elm); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of_declaration_array_pattern.js
JavaScript
for(let _i = 0; _i < array.length; _i++){ const [elm] = array[_i]; console.log(elm); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of_expression.js
JavaScript
let i; for(let _i = 0; _i < items.length; _i++){ i = items[_i]; i; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of_import_es2015.js
JavaScript
import { array } from "foo"; for(let _i = 0; _i < array.length; _i++){ const elm = array[_i]; console.log(elm); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of_static.js
JavaScript
const array = []; let elm; for(let _i = 0; _i < array.length; _i++){ elm = array[_i]; console.log(elm); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/for_of_as_array_for_of_static_declaration.js
JavaScript
const array = []; for(let _i = 0; _i < array.length; _i++){ const elm = array[_i]; console.log(elm); }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/regression_if_label_3858.js
JavaScript
if (true) loop: for(let _i = 0, _iter = []; _i < _iter.length; _i++){ let ch = _iter[_i]; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/regression_label_object_with_comment_4995.js
JavaScript
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { myLabel: for(var _iterator = b[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ let a = _step.value; continue myLabel; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally{ try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally{ if (_didIteratorError) { throw _iteratorError; } } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/regression_redeclare_array_8913.js
JavaScript
function f(...t) { for(let _i = 0; _i < t.length; _i++){ let o = t[_i]; const t = o; } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/spec_let.js
JavaScript
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { for(var _iterator = arr[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ let i = _step.value; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally{ try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally{ if (_didIteratorError) { throw _iteratorError; } } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/spec_member_expr.js
JavaScript
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { for(var _iterator = arr[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ obj.prop = _step.value; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally{ try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally{ if (_didIteratorError) { throw _iteratorError; } } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/spec_multiple.js
JavaScript
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { for(var _iterator = arr[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ var i = _step.value; } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally{ try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally{ if (_didIteratorError) { throw _iteratorError; } } } var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined; try { for(var _iterator1 = numbers[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){ var i = _step1.value; } } catch (err) { _didIteratorError1 = true; _iteratorError1 = err; } finally{ try { if (!_iteratorNormalCompletion1 && _iterator1.return != null) { _iterator1.return(); } } finally{ if (_didIteratorError1) { throw _iteratorError1; } } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_for_of.rs/spec_nested_label_for_of.js
JavaScript
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined; try { b: for(var _iterator = d()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){ let c = _step.value; var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined; try { for(var _iterator1 = f()[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){ let e = _step1.value; continue b; } } catch (err) { _didIteratorError1 = true; _iteratorError1 = err; } finally{ try { if (!_iteratorNormalCompletion1 && _iterator1.return != null) { _iterator1.return(); } } finally{ if (_didIteratorError1) { throw _iteratorError1; } } } } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally{ try { if (!_iteratorNormalCompletion && _iterator.return != null) { _iterator.return(); } } finally{ if (_didIteratorError) { throw _iteratorError; } } }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University