mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
chore: Publish v1.2.63 & Update rustc (#1894)
This commit is contained in:
parent
211e208219
commit
35af4c5186
2
.github/workflows/integration.yml
vendored
2
.github/workflows/integration.yml
vendored
@ -43,7 +43,7 @@ jobs:
|
|||||||
export PATH="$PATH:$HOME/npm/bin"
|
export PATH="$PATH:$HOME/npm/bin"
|
||||||
|
|
||||||
npm run build:dev
|
npm run build:dev
|
||||||
NODE_OPTIONS='--experimental-vm-modules npx jest' npm test
|
NODE_OPTIONS='--experimental-vm-modules' npm test
|
||||||
|
|
||||||
integration-test:
|
integration-test:
|
||||||
name: swc-cli
|
name: swc-cli
|
||||||
|
2
.github/workflows/publish-node.yml
vendored
2
.github/workflows/publish-node.yml
vendored
@ -50,7 +50,7 @@ jobs:
|
|||||||
path: swc.*.node
|
path: swc.*.node
|
||||||
|
|
||||||
- name: Test bindings
|
- name: Test bindings
|
||||||
run: npm test
|
run: NODE_OPTIONS='--experimental-vm-modules' npm test
|
||||||
|
|
||||||
- name: Test in lts docker
|
- name: Test in lts docker
|
||||||
if: matrix.os == 'ubuntu-18.04'
|
if: matrix.os == 'ubuntu-18.04'
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![feature(bench_black_box)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -74,6 +74,8 @@ fn fixtures() -> Result<(), Error> {
|
|||||||
ignore: false,
|
ignore: false,
|
||||||
should_panic: ShouldPanic::No,
|
should_panic: ShouldPanic::No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::alloc().init(move || {
|
testfn: DynTestFn(Box::alloc().init(move || {
|
||||||
let syntax = if is_typescript {
|
let syntax = if is_typescript {
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![feature(bench_black_box)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -7,7 +7,7 @@ use crate::{
|
|||||||
id::{Id, ModuleId},
|
id::{Id, ModuleId},
|
||||||
load::Load,
|
load::Load,
|
||||||
resolve::Resolve,
|
resolve::Resolve,
|
||||||
util::{self, CloneMap, ExprExt, VarDeclaratorExt},
|
util::{CloneMap, ExprExt, VarDeclaratorExt},
|
||||||
Bundler, Hook, ModuleRecord,
|
Bundler, Hook, ModuleRecord,
|
||||||
};
|
};
|
||||||
use anyhow::Error;
|
use anyhow::Error;
|
||||||
@ -23,14 +23,12 @@ use swc_common::{sync::Lock, FileName, SyntaxContext, DUMMY_SP};
|
|||||||
use swc_ecma_ast::*;
|
use swc_ecma_ast::*;
|
||||||
use swc_ecma_utils::{find_ids, prepend, private_ident};
|
use swc_ecma_utils::{find_ids, prepend, private_ident};
|
||||||
use swc_ecma_visit::{noop_fold_type, noop_visit_mut_type, Fold, VisitMut, VisitMutWith};
|
use swc_ecma_visit::{noop_fold_type, noop_visit_mut_type, Fold, VisitMut, VisitMutWith};
|
||||||
use util::CHashSet;
|
|
||||||
use EdgeDirection::Outgoing;
|
use EdgeDirection::Outgoing;
|
||||||
|
|
||||||
pub(super) struct Ctx {
|
pub(super) struct Ctx {
|
||||||
/// Full dependency graph.
|
/// Full dependency graph.
|
||||||
pub graph: ModuleGraph,
|
pub graph: ModuleGraph,
|
||||||
pub cycles: Vec<Vec<ModuleId>>,
|
pub cycles: Vec<Vec<ModuleId>>,
|
||||||
pub merged: CHashSet<ModuleId>,
|
|
||||||
pub transitive_remap: CloneMap<SyntaxContext, SyntaxContext>,
|
pub transitive_remap: CloneMap<SyntaxContext, SyntaxContext>,
|
||||||
pub export_stars_in_wrapped: Lock<FxHashMap<ModuleId, Vec<SyntaxContext>>>,
|
pub export_stars_in_wrapped: Lock<FxHashMap<ModuleId, Vec<SyntaxContext>>>,
|
||||||
}
|
}
|
||||||
|
@ -69,7 +69,6 @@ where
|
|||||||
let ctx = Ctx {
|
let ctx = Ctx {
|
||||||
graph,
|
graph,
|
||||||
cycles,
|
cycles,
|
||||||
merged: Default::default(),
|
|
||||||
transitive_remap: Default::default(),
|
transitive_remap: Default::default(),
|
||||||
export_stars_in_wrapped: Default::default(),
|
export_stars_in_wrapped: Default::default(),
|
||||||
};
|
};
|
||||||
|
@ -44,6 +44,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![feature(bench_black_box)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![feature(bench_black_box)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![feature(bench_black_box)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -84,6 +84,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -27,6 +27,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#![feature(bench_black_box)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -103,6 +103,7 @@
|
|||||||
//!
|
//!
|
||||||
//! [tc39/test262]:https://github.com/tc39/test262
|
//! [tc39/test262]:https://github.com/tc39/test262
|
||||||
|
|
||||||
|
#![cfg_attr(test, feature(bench_black_box))]
|
||||||
#![cfg_attr(test, feature(test))]
|
#![cfg_attr(test, feature(test))]
|
||||||
#![deny(unused)]
|
#![deny(unused)]
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -29,6 +29,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -93,6 +93,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -160,6 +160,8 @@ fn load() -> Result<Vec<TestDescAndFn>, Error> {
|
|||||||
name: TestName::DynTestName(name),
|
name: TestName::DynTestName(name),
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
should_panic: ShouldPanic::No,
|
should_panic: ShouldPanic::No,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: TestFn::DynTestFn(Box::new(move || {
|
testfn: TestFn::DynTestFn(Box::new(move || {
|
||||||
//
|
//
|
||||||
|
@ -104,6 +104,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -33,6 +33,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
@ -1 +1 @@
|
|||||||
nightly-2021-04-25
|
nightly-2021-06-09
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
//! This benchmark lives here because I don't want to implement `Resolve` again
|
//! This benchmark lives here because I don't want to implement `Resolve` again
|
||||||
//! and again.
|
//! and again.
|
||||||
|
#![feature(bench_black_box)]
|
||||||
#![feature(test)]
|
#![feature(test)]
|
||||||
|
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
@ -41,6 +41,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
|||||||
ignore,
|
ignore,
|
||||||
should_panic: No,
|
should_panic: No,
|
||||||
allow_fail: false,
|
allow_fail: false,
|
||||||
|
compile_fail: Default::default(),
|
||||||
|
no_run: Default::default(),
|
||||||
},
|
},
|
||||||
testfn: DynTestFn(Box::new(f)),
|
testfn: DynTestFn(Box::new(f)),
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user