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_classes.rs/set_method_literal_key.js
JavaScript
let Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { _class_call_check(this, Foo); } var _proto = Foo.prototype; _proto["bar"] = function bar() {}; return Foo; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/set_method_static.js
JavaScript
let Test = /*#__PURE__*/ function() { "use strict"; function Test() { _class_call_check(this, Test); } var _proto = Test.prototype; _proto.a = function a() {}; _proto.c = function c() {}; Test.b = function b() {}; return Test; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_accessing_super_properties.js
JavaScript
var Test = /*#__PURE__*/ function(Foo1) { "use strict"; _inherits(Test, Foo1); function Test() { _class_call_check(this, Test); var _this; _this = _call_super(this, Test); _get((_assert_this_initialized(_this), _get_prototype_of(Test.prototype)), "test", _this); _get((_assert_this_initialized(_this), _get_prototype_of(Test.prototype)), "test", _this).whatever; return _this; } return Test; }(Foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_calling_super_properties.js
JavaScript
var Test = /*#__PURE__*/ function(Foo1) { "use strict"; _inherits(Test, Foo1); function Test() { _class_call_check(this, Test); var _this; _this = _call_super(this, Test); _get((_assert_this_initialized(_this), _get_prototype_of(Test.prototype)), "test", _this).whatever(); _get((_assert_this_initialized(_this), _get_prototype_of(Test.prototype)), "test", _this).call(_this); return _this; } _create_class(Test, null, [ { key: "test", value: function test() { return _get(_get_prototype_of(Test), "wow", this).call(this); } } ]); return Test; }(Foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_computed_methods.js
JavaScript
var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { _class_call_check(this, Foo); } _create_class(Foo, [ { key: "foo", value: function foo() {} }, { key: bar, value: function() {} }, { key: bar + "foo", value: function() {} } ]); return Foo; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_constructor.js
JavaScript
var Test = function Test() { "use strict"; _class_call_check(this, Test); this.state = "test"; }; var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; _this = _call_super(this, Foo); _this.state = "test"; return _this; } return Foo; }(Bar); var ConstructorScoping = function ConstructorScoping() { "use strict"; _class_call_check(this, ConstructorScoping); var bar; { var bar1; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_constructor_binding_collision.js
JavaScript
var Example = function Example() { "use strict"; _class_call_check(this, Example); var _$Example; }; var t = new Example();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_constructor_only.js
JavaScript
var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_default_super.js
JavaScript
var Test = /*#__PURE__*/ function() { "use strict"; function Test() { _class_call_check(this, Test); return _get(_get_prototype_of(Test.prototype), "constructor", this); } _create_class(Test, null, [ { key: "test", value: function test() { return _get(_get_prototype_of(Test), "constructor", this); } } ]); return Test; }(); // Instances expect(Object.getPrototypeOf(Test.prototype)).toBe(Object.prototype); expect(new Test()).toBe(Object); // Static expect(Object.getPrototypeOf(Test)).toBe(Function.prototype); expect(Test.test()).toBe(Function);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_default_super_constructor.js
JavaScript
var Test = function Test() { "use strict"; _class_call_check(this, Test); return _get(_get_prototype_of(Test.prototype), "constructor", this); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_delay_arrow_function_for_bare_super_derived.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; return _this = _call_super(this, Foo, [ ()=>{ _assert_this_initialized(_this).test; } ]); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_derived_constructor_must_call_super.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); return _assert_this_initialized(void 0); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_derived_constructor_must_call_super_2.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; if (eval("false")) _this = _call_super(this, Foo); return _assert_this_initialized(_this); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_derived_constructor_must_call_super_3.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; var fn = ()=>_this = _call_super(this, Foo); fn(); return _assert_this_initialized(_this); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_derived_constructor_must_call_super_4.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; var fn = ()=>_this = _call_super(this, Foo); return _assert_this_initialized(_this); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_derived_constructor_no_super_return_falsey.js
JavaScript
var Child = /*#__PURE__*/ function(Base1) { "use strict"; _inherits(Child, Base1); function Child() { _class_call_check(this, Child); var _this; return _possible_constructor_return(_this, false); } return Child; }(Base);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_derived_constructor_no_super_return_object.js
JavaScript
var Child = /*#__PURE__*/ function(Base1) { "use strict"; _inherits(Child, Base1); function Child() { _class_call_check(this, Child); var _this; return _possible_constructor_return(_this, {}); } return Child; }(Base);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_export_default.js
JavaScript
var Foo = function Foo() { "use strict"; _class_call_check(this, Foo); }; export { Foo as default };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_export_super_class.js
JavaScript
var _default = /*#__PURE__*/ function(A1) { "use strict"; _inherits(_default, A1); function _default() { _class_call_check(this, _default); return _call_super(this, _default, arguments); } return _default; }(A); export { _default as default };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_inferred_expression_name.js
JavaScript
var o = { foo: function foo() { "use strict"; _class_call_check(this, foo); } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_instance_getter.js
JavaScript
var Test = /*#__PURE__*/ function() { "use strict"; function Test() { _class_call_check(this, Test); } _create_class(Test, [ { key: "test", get: function() { return 5 + 5; } } ]); return Test; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_instance_getter_and_setter.js
JavaScript
var Test = /*#__PURE__*/ function() { "use strict"; function Test() { _class_call_check(this, Test); } _create_class(Test, [ { key: "test", get: function() { return 5 + 5; }, set: function(val) { this._test = val; } } ]); return Test; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_instance_method.js
JavaScript
var Test = /*#__PURE__*/ function() { "use strict"; function Test() { _class_call_check(this, Test); } _create_class(Test, [ { key: "test", value: function test() { return 5 + 5; } } ]); return Test; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_instance_setter.js
JavaScript
var Test = /*#__PURE__*/ function() { "use strict"; function Test() { _class_call_check(this, Test); } _create_class(Test, [ { key: "test", set: function(val) { this._test = val; } } ]); return Test; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_nested_class_super_call_in_key.js
JavaScript
var Hello = function Hello() { "use strict"; _class_call_check(this, Hello); return { toString () { return 'hello'; } }; }; var Outer = /*#__PURE__*/ function(Hello) { "use strict"; _inherits(Outer, Hello); function Outer() { _class_call_check(this, Outer); var _this; _this = _call_super(this, Outer); var Inner = /*#__PURE__*/ function() { function Inner() { _class_call_check(this, Inner); } _create_class(Inner, [ { key: _this, value: function() { return 'hello'; } } ]); return Inner; }(); return _possible_constructor_return(_this, new Inner()); } return Outer; }(Hello); expect(new Outer().hello()).toBe('hello');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_nested_class_super_property_in_key.js
JavaScript
var Hello = /*#__PURE__*/ function() { "use strict"; function Hello() { _class_call_check(this, Hello); } _create_class(Hello, [ { key: "toString", value: function toString() { return 'hello'; } } ]); return Hello; }(); var Outer = /*#__PURE__*/ function(Hello) { "use strict"; _inherits(Outer, Hello); function Outer() { _class_call_check(this, Outer); var _this; _this = _call_super(this, Outer); var Inner = /*#__PURE__*/ function() { function Inner() { _class_call_check(this, Inner); } _create_class(Inner, [ { key: _get((_assert_this_initialized(_this), _get_prototype_of(Outer.prototype)), "toString", _this).call(_this), value: function() { return 'hello'; } } ]); return Inner; }(); return _possible_constructor_return(_this, new Inner()); } return Outer; }(Hello); expect(new Outer().hello()).toBe('hello');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_nested_object_super_call_in_key.js
JavaScript
var Hello = function Hello() { "use strict"; _class_call_check(this, Hello); return { toString () { return 'hello'; } }; }; var Outer = /*#__PURE__*/ function(Hello) { "use strict"; _inherits(Outer, Hello); function Outer() { _class_call_check(this, Outer); var _this; var Inner = { [_this = _call_super(this, Outer)] () { return 'hello'; } }; return _possible_constructor_return(_this, Inner); } return Outer; }(Hello); expect(new Outer().hello()).toBe('hello');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_nested_object_super_property_in_key.js
JavaScript
var Hello = /*#__PURE__*/ function() { "use strict"; function Hello() { _class_call_check(this, Hello); } _create_class(Hello, [ { key: "toString", value: function toString() { return 'hello'; } } ]); return Hello; }(); var Outer = /*#__PURE__*/ function(Hello) { "use strict"; _inherits(Outer, Hello); function Outer() { _class_call_check(this, Outer); var _this; _this = _call_super(this, Outer); var Inner = { [_get((_assert_this_initialized(_this), _get_prototype_of(Outer.prototype)), "toString", _this).call(_this)] () { return 'hello'; } }; return _possible_constructor_return(_this, Inner); } return Outer; }(Hello); expect(new Outer().hello()).toBe('hello');
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_plain_class.js
JavaScript
var Test = function Test() { "use strict"; _class_call_check(this, Test); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_preserves_directives.js
JavaScript
var MyCtrl = function MyCtrl(a) { "use strict"; _class_call_check(this, MyCtrl); "any directive prologue"; foo; }; var MyCtrl2 = function MyCtrl2(a) { "use strict"; _class_call_check(this, MyCtrl2); "a"; "b"; foo; }; var MyCtrl3 = function MyCtrl3(a) { "use strict"; _class_call_check(this, MyCtrl3); "a"; foo; "b"; };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_relaxed_method_coercion.js
JavaScript
// #1649 var Foo = /*#__PURE__*/ function() { "use strict"; function Foo() { _class_call_check(this, Foo); } _create_class(Foo, [ { key: Symbol(), value: function() {} }, { key: Symbol(), value: function() {} } ]); return Foo; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_static.js
JavaScript
var A = /*#__PURE__*/ function() { "use strict"; function A() { _class_call_check(this, A); } _create_class(A, null, [ { key: "a", value: function a() {} }, { key: "b", get: function() {}, set: function(b) {} } ]); return A; }();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_super_class.js
JavaScript
var Test = /*#__PURE__*/ function(Foo1) { "use strict"; _inherits(Test, Foo1); function Test() { _class_call_check(this, Test); return _call_super(this, Test, arguments); } return Test; }(Foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_super_class_anonymous.js
JavaScript
var TestEmpty = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(TestEmpty, _superClass); function TestEmpty() { _class_call_check(this, TestEmpty); return _call_super(this, TestEmpty, arguments); } return TestEmpty; }(function _class() { "use strict"; _class_call_check(this, _class); }); var TestConstructorOnly = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(TestConstructorOnly, _superClass); function TestConstructorOnly() { _class_call_check(this, TestConstructorOnly); return _call_super(this, TestConstructorOnly, arguments); } return TestConstructorOnly; }(function _class() { "use strict"; _class_call_check(this, _class); }); var TestMethodOnly = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(TestMethodOnly, _superClass); function TestMethodOnly() { _class_call_check(this, TestMethodOnly); return _call_super(this, TestMethodOnly, arguments); } return TestMethodOnly; }(/*#__PURE__*/ function() { "use strict"; function _class() { _class_call_check(this, _class); } _create_class(_class, [ { key: "method", value: function method() {} } ]); return _class; }()); var TestConstructorAndMethod = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(TestConstructorAndMethod, _superClass); function TestConstructorAndMethod() { _class_call_check(this, TestConstructorAndMethod); return _call_super(this, TestConstructorAndMethod, arguments); } return TestConstructorAndMethod; }(/*#__PURE__*/ function() { "use strict"; function _class() { _class_call_check(this, _class); } _create_class(_class, [ { key: "method", value: function method() {} } ]); return _class; }()); var TestMultipleMethods = /*#__PURE__*/ function(_superClass) { "use strict"; _inherits(TestMultipleMethods, _superClass); function TestMultipleMethods() { _class_call_check(this, TestMultipleMethods); return _call_super(this, TestMultipleMethods, arguments); } return TestMultipleMethods; }(/*#__PURE__*/ function() { "use strict"; function _class() { _class_call_check(this, _class); } _create_class(_class, [ { key: "m1", value: function m1() {} }, { key: "m2", value: function m2() {} } ]); return _class; }());
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_super_class_id_member_expression.js
JavaScript
var BaseController = /*#__PURE__*/ function(_Chaplin_Controller) { "use strict"; _inherits(BaseController, _Chaplin_Controller); function BaseController() { _class_call_check(this, BaseController); return _call_super(this, BaseController, arguments); } return BaseController; }(Chaplin.Controller); var BaseController2 = /*#__PURE__*/ function(_Chaplin_Controller_Another) { "use strict"; _inherits(BaseController2, _Chaplin_Controller_Another); function BaseController2() { _class_call_check(this, BaseController2); return _call_super(this, BaseController2, arguments); } return BaseController2; }(Chaplin.Controller.Another);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_super_function_fallback.js
JavaScript
var Test = function Test() { "use strict"; _class_call_check(this, Test); _get(_get_prototype_of(Test.prototype), "hasOwnProperty", this).call(this, "test"); };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_super_reference_in_prop_exression.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; _get((_assert_this_initialized(_this), _get_prototype_of(Foo.prototype)), (_this = _call_super(this, Foo)).method, _this).call(_this); return _this; } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_this_not_allowed_before_super_in_derived_classes.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; _assert_this_initialized(_this).foo = "bar"; return _this = _call_super(this, Foo); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_this_not_allowed_before_super_in_derived_classes_2.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; return _this = _call_super(this, Foo, [ _assert_this_initialized(_this) ]); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_this_not_allowed_before_super_in_derived_classes_3.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; var fn = ()=>_assert_this_initialized(_this); fn(); return _this = _call_super(this, Foo); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_this_not_allowed_before_super_in_derived_classes_4.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; var fn = ()=>_assert_this_initialized(_this); _this = _call_super(this, Foo); fn(); return _this; } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/spec_this_not_allowed_before_super_in_derived_classes_5.js
JavaScript
var Foo = /*#__PURE__*/ function(Bar1) { "use strict"; _inherits(Foo, Bar1); function Foo() { _class_call_check(this, Foo); var _this; Foo[_assert_this_initialized(_this)]; return _assert_this_initialized(_this); } return Foo; }(Bar);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/super_binding.js
JavaScript
let Foo = function Foo() { "use strict"; _class_call_check(this, Foo); }; let Test = /*#__PURE__*/ function(Foo1) { "use strict"; _inherits(Test, Foo1); function Test() { _class_call_check(this, Test); return _call_super(this, Test, arguments); } _create_class(Test, [ { key: "foo", value: function foo() { console.log(Foo); } } ]); return Test; }(Foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/super_callable.js
JavaScript
let BaseController = /*#__PURE__*/ function(_Chaplin_Controller) { "use strict"; _inherits(BaseController, _Chaplin_Controller); function BaseController() { _class_call_check(this, BaseController); return _Chaplin_Controller.apply(this, arguments) || this; } return BaseController; }(Chaplin.Controller); let BaseController2 = /*#__PURE__*/ function(_Chaplin_Controller_Another) { "use strict"; _inherits(BaseController2, _Chaplin_Controller_Another); function BaseController2() { _class_call_check(this, BaseController2); return _Chaplin_Controller_Another.apply(this, arguments) || this; } return BaseController2; }(Chaplin.Controller.Another);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_classes.rs/super_callable_super.js
JavaScript
let Test = /*#__PURE__*/ function(Foo) { "use strict"; _inherits(Test, Foo); function Test() { _class_call_check(this, Test); return Foo.apply(this, arguments) || this; } return Test; }(Foo);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/accessors.js
JavaScript
var _obj, _mutatorMap = {}; var obj = (_obj = {}, _mutatorMap[foobar] = _mutatorMap[foobar] || {}, _mutatorMap[foobar].get = function() { return "foobar"; }, _mutatorMap[foobar] = _mutatorMap[foobar] || {}, _mutatorMap[foobar].set = function(x) { console.log(x); }, _mutatorMap["test"] = _mutatorMap["test"] || {}, _mutatorMap["test"].get = function() { return "regular getter after computed property"; }, _mutatorMap["test"] = _mutatorMap["test"] || {}, _mutatorMap["test"].set = function(x) { console.log(x); }, _define_enumerable_properties(_obj, _mutatorMap), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/argument.js
JavaScript
foo(_define_property({}, bar, "foobar"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/assignment.js
JavaScript
foo = _define_property({}, bar, "foobar");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/big_int.js
JavaScript
var _obj; const b = (_obj = { 1n: 1 }, _define_property(_obj, x, 'x'), _define_property(_obj, 2n, 2), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/issue_210.js
JavaScript
const b = _define_property({}, a, 1); export const c = _define_property({}, a, 1);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/issue_2680.js
JavaScript
var _obj, _mutatorMap = {}; const obj = (_obj = {}, _mutatorMap[1] = _mutatorMap[1] || {}, _mutatorMap[1].get = function() {}, _define_enumerable_properties(_obj, _mutatorMap), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/issue_2680_4.js
JavaScript
const obj = { foo () { var _obj, _mutatorMap = {}; const obj2 = (_obj = {}, _mutatorMap[1] = _mutatorMap[1] || {}, _mutatorMap[1].get = function() { return 42; }, _define_enumerable_properties(_obj, _mutatorMap), _obj); return obj2; } };
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/issue_315_1.js
JavaScript
_define_property({ foo: _define_property({ bar: null }, baz, null) }, bon, { flab: null }); export function corge() {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/issue_315_2.js
JavaScript
export function corge() {}
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/issue_315_3.js
JavaScript
export function corge() {} _define_property({ foo: _define_property({ bar: null }, baz, null) }, bon, { flab: null });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/issue_315_4.js
JavaScript
export class Foo { } _define_property({ foo: _define_property({ bar: null }, baz, null) }, bon, { flab: null });
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_argument.js
JavaScript
var _obj; foo((_obj = {}, _obj[bar] = "foobar", _obj));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_assignment.js
JavaScript
var _obj; foo = (_obj = {}, _obj[bar] = "foobar", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_coerce.js
JavaScript
var _obj; var obj = (_obj = { foo: "bar" }, _obj[bar] = "foo", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_method.js
JavaScript
var _obj; var obj = (_obj = {}, _obj[foobar] = function() { return "foobar"; }, _obj.test = function() { return "regular method after computed property"; }, _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_mixed.js
JavaScript
var _obj; var obj = (_obj = {}, _obj["x" + foo] = "heh", _obj["y" + bar] = "noo", _obj.foo = "foo", _obj.bar = "bar", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_multiple.js
JavaScript
var _obj; var obj = (_obj = {}, _obj["x" + foo] = "heh", _obj["y" + bar] = "noo", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_single.js
JavaScript
var _obj; var obj = (_obj = {}, _obj["x" + foo] = "heh", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_str_lit.js
JavaScript
var _obj; var foo = (_obj = {}, _obj["213"] = "foobar", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_this.js
JavaScript
var _obj; var obj = (_obj = {}, _obj["x" + foo.bar] = "heh", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_two.js
JavaScript
var _obj; var obj = (_obj = { first: "first" }, _obj[second] = "second", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/loose_variable.js
JavaScript
var _obj; var foo = (_obj = {}, _obj[bar] = "foobar", _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/method.js
JavaScript
var _obj; var obj = (_obj = {}, _define_property(_obj, foobar, function() { return "foobar"; }), _define_property(_obj, "test", function() { return "regular method after computed property"; }), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/mixed.js
JavaScript
var _obj; var obj = (_obj = {}, _define_property(_obj, "x" + foo, "heh"), _define_property(_obj, "y" + bar, "noo"), _define_property(_obj, "foo", "foo"), _define_property(_obj, "bar", "bar"), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/multiple.js
JavaScript
var _obj; var obj = (_obj = {}, _define_property(_obj, "x" + foo, "heh"), _define_property(_obj, "y" + bar, "noo"), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/regression_7144.js
JavaScript
var _obj; export default (_obj = {}, _define_property(_obj, a, b), _define_property(_obj, c, d), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/single.js
JavaScript
var obj = _define_property({}, "x" + foo, "heh");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_argument.js
JavaScript
foo(_define_property({}, bar, "foobar"));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_assignment.js
JavaScript
foo = _define_property({}, bar, "foobar");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_method.js
JavaScript
var _obj; var obj = (_obj = {}, _define_property(_obj, foobar, function() { return "foobar"; }), _define_property(_obj, "test", function() { return "regular method after computed property"; }), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_mixed.js
JavaScript
var _obj; var obj = (_obj = {}, _define_property(_obj, "x" + foo, "heh"), _define_property(_obj, "y" + bar, "noo"), _define_property(_obj, "foo", "foo"), _define_property(_obj, "bar", "bar"), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_multiple.js
JavaScript
var _obj; var obj = (_obj = {}, _define_property(_obj, "x" + foo, "heh"), _define_property(_obj, "y" + bar, "noo"), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_single.js
JavaScript
var obj = _define_property({}, "x" + foo, "heh");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_this.js
JavaScript
var obj = _define_property({}, "x" + foo.bar, "heh");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_two.js
JavaScript
var obj = _define_property({ first: "first" }, "second", "second");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/spec_variable.js
JavaScript
var foo = _define_property({}, bar, "foobar");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/symbol.js
JavaScript
var k = Symbol(); var _obj, _mutatorMap = {}; var foo = (_obj = {}, _define_property(_obj, Symbol.iterator, "foobar"), _mutatorMap[k] = _mutatorMap[k] || {}, _mutatorMap[k].get = function() { return k; }, _define_enumerable_properties(_obj, _mutatorMap), _obj);
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_computed_props.rs/this.js
JavaScript
var obj = _define_property({}, "x" + foo.bar, "heh");
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/array1.js
JavaScript
var a = "hello", _ref = [ " ", "junk" ], b = _ref[0], c = "world";
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/array2.js
JavaScript
var ref, ref1; a = "hello", ref = [ " ", "junk" ], b = ref[0], ref, ref1 = [ "world" ], c = ref1[0], ref1;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/array_pat_assign_prop_binding.js
JavaScript
var ref; ref = 1, code = ref === void 0 ? 1 : ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/array_pat_assign_prop_binding_2.js
JavaScript
var ref, ref1, ref2; ref = [ 3 ], ref1 = ref[0], foo = ref1 === void 0 ? 1 : ref1, ref2 = ref[1], bar = ref2 === void 0 ? 2 : ref2, ref;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/array_pat_assign_prop_binding_3.js
JavaScript
var ref, ref1; ref = 3, foo = ref === void 0 ? 1 : ref, ref1 = 4, bar = ref1 === void 0 ? 2 : ref1;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/array_pat_assign_prop_binding_4.js
JavaScript
const tmp = 2, foo = 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/array_pat_assign_prop_binding_5.js
JavaScript
const tmp = 2, foo = tmp === void 0 ? 1 : tmp, bar = 3;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/array_pat_assign_prop_binding_6.js
JavaScript
const _ref = [], tmp = _ref[0], foo = 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/array_pat_assign_prop_binding_7.js
JavaScript
const _ref = [ 1, 2 ], tmp = _ref[0], foo = 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/assign_expr.js
JavaScript
var ref; console.log((ref = [ 123 ], x = ref[0], ref));
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/assign_expr_completion_record.js
JavaScript
var x, y; x = 1, y = 2;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/assign_expr_pat.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/babel_issue_3081.js
JavaScript
let list = [ 1, 2, 3, 4 ]; for(let i = 0, length = list.length; i < length; i++){ list[i]; }
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/babel_issue_5628.js
JavaScript
(function() { let q; let w; let e; var ref; if (true) ref = [ 1, 2, 3 ].map(()=>123), q = ref[0], w = ref[1], e = ref[2], ref; })();
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University
crates/swc_ecma_transforms_compat/tests/__swc_snapshots__/tests/es2015_destructuring.rs/babel_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/custom_call.js
JavaScript
var ref; foo((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_array.js
JavaScript
var a = "hello", _ref = [ " ", "junk" ], b = _ref[0], c = "world"; var ref, ref1; a = "hello", ref = [ " ", "junk" ], b = ref[0], ref, ref1 = [ "world" ], c = ref1[0], ref1;
willcrichton/ilc-swc
1
Rust
willcrichton
Will Crichton
Brown University