Skip to content

Commit 3c38896

Browse files
committed
Update test refs (native)
1 parent 7bcc55a commit 3c38896

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

packages/next-swc/crates/core/tests/loader/example/output.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
function _arrayLikeToArray(arr, len) {
1+
function _array_like_to_array(arr, len) {
22
if (len == null || len > arr.length) len = arr.length;
33
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
44
return arr2;
55
}
6-
function _arrayWithHoles(arr) {
6+
function _array_with_holes(arr) {
77
if (Array.isArray(arr)) return arr;
88
}
9-
function _classCallCheck(instance, Constructor) {
9+
function _class_call_check(instance, Constructor) {
1010
if (!(instance instanceof Constructor)) {
1111
throw new TypeError("Cannot call a class as a function");
1212
}
1313
}
14-
function _iterableToArrayLimit(arr, i) {
14+
function _iterable_to_array_limit(arr, i) {
1515
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
1616
if (_i == null) return;
1717
var _arr = [];
@@ -35,25 +35,25 @@ function _iterableToArrayLimit(arr, i) {
3535
}
3636
return _arr;
3737
}
38-
function _nonIterableRest() {
38+
function _non_iterable_rest() {
3939
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
4040
}
41-
function _slicedToArray(arr, i) {
42-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
41+
function _sliced_to_array(arr, i) {
42+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
4343
}
44-
function _unsupportedIterableToArray(o, minLen) {
44+
function _unsupported_iterable_to_array(o, minLen) {
4545
if (!o) return;
46-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
46+
if (typeof o === "string") return _array_like_to_array(o, minLen);
4747
var n = Object.prototype.toString.call(o).slice(8, -1);
4848
if (n === "Object" && o.constructor) n = o.constructor.name;
4949
if (n === "Map" || n === "Set") return Array.from(n);
50-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
50+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
5151
}
5252
import other from "other";
53-
var _other = _slicedToArray(other, 1), foo = _other[0];
53+
var _other = _sliced_to_array(other, 1), foo = _other[0];
5454
var Foo = function Foo() {
5555
"use strict";
56-
_classCallCheck(this, Foo);
56+
_class_call_check(this, Foo);
5757
};
5858
export var __N_SSG = true;
5959
export default function Home() {

packages/next-swc/crates/core/tests/loader/issue-31627/output.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function _classCallCheck(instance, Constructor) {
1+
function _class_call_check(instance, Constructor) {
22
if (!(instance instanceof Constructor)) {
33
throw new TypeError("Cannot call a class as a function");
44
}
@@ -17,7 +17,7 @@ export default function Home() {
1717
}
1818
var MyClass = function MyClass() {
1919
"use strict";
20-
_classCallCheck(this, MyClass);
20+
_class_call_check(this, MyClass);
2121
selectAll(".group").each(function() {
2222
select(this).selectAll("path");
2323
});

packages/next-swc/crates/core/tests/loader/styled-components/1/output.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function _taggedTemplateLiteral(strings, raw) {
1+
function _tagged_template_literal(strings, raw) {
22
if (!raw) {
33
raw = strings.slice(0);
44
}
@@ -9,7 +9,7 @@ function _taggedTemplateLiteral(strings, raw) {
99
}));
1010
}
1111
function _templateObject() {
12-
var data = _taggedTemplateLiteral([
12+
var data = _tagged_template_literal([
1313
"\n color: red;\n"
1414
]);
1515
_templateObject = function _templateObject() {

0 commit comments

Comments
 (0)