mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +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"
|
||||
|
||||
npm run build:dev
|
||||
NODE_OPTIONS='--experimental-vm-modules npx jest' npm test
|
||||
NODE_OPTIONS='--experimental-vm-modules' npm test
|
||||
|
||||
integration-test:
|
||||
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
|
||||
|
||||
- name: Test bindings
|
||||
run: npm test
|
||||
run: NODE_OPTIONS='--experimental-vm-modules' npm test
|
||||
|
||||
- name: Test in lts docker
|
||||
if: matrix.os == 'ubuntu-18.04'
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![feature(bench_black_box)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
@ -74,6 +74,8 @@ fn fixtures() -> Result<(), Error> {
|
||||
ignore: false,
|
||||
should_panic: ShouldPanic::No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::alloc().init(move || {
|
||||
let syntax = if is_typescript {
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![feature(bench_black_box)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
@ -7,7 +7,7 @@ use crate::{
|
||||
id::{Id, ModuleId},
|
||||
load::Load,
|
||||
resolve::Resolve,
|
||||
util::{self, CloneMap, ExprExt, VarDeclaratorExt},
|
||||
util::{CloneMap, ExprExt, VarDeclaratorExt},
|
||||
Bundler, Hook, ModuleRecord,
|
||||
};
|
||||
use anyhow::Error;
|
||||
@ -23,14 +23,12 @@ use swc_common::{sync::Lock, FileName, SyntaxContext, DUMMY_SP};
|
||||
use swc_ecma_ast::*;
|
||||
use swc_ecma_utils::{find_ids, prepend, private_ident};
|
||||
use swc_ecma_visit::{noop_fold_type, noop_visit_mut_type, Fold, VisitMut, VisitMutWith};
|
||||
use util::CHashSet;
|
||||
use EdgeDirection::Outgoing;
|
||||
|
||||
pub(super) struct Ctx {
|
||||
/// Full dependency graph.
|
||||
pub graph: ModuleGraph,
|
||||
pub cycles: Vec<Vec<ModuleId>>,
|
||||
pub merged: CHashSet<ModuleId>,
|
||||
pub transitive_remap: CloneMap<SyntaxContext, SyntaxContext>,
|
||||
pub export_stars_in_wrapped: Lock<FxHashMap<ModuleId, Vec<SyntaxContext>>>,
|
||||
}
|
||||
|
@ -69,7 +69,6 @@ where
|
||||
let ctx = Ctx {
|
||||
graph,
|
||||
cycles,
|
||||
merged: Default::default(),
|
||||
transitive_remap: Default::default(),
|
||||
export_stars_in_wrapped: Default::default(),
|
||||
};
|
||||
|
@ -44,6 +44,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![feature(bench_black_box)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![feature(bench_black_box)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![feature(bench_black_box)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
@ -84,6 +84,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
@ -27,6 +27,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
@ -1,3 +1,4 @@
|
||||
#![feature(bench_black_box)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
@ -103,6 +103,7 @@
|
||||
//!
|
||||
//! [tc39/test262]:https://github.com/tc39/test262
|
||||
|
||||
#![cfg_attr(test, feature(bench_black_box))]
|
||||
#![cfg_attr(test, feature(test))]
|
||||
#![deny(unused)]
|
||||
|
||||
|
@ -33,6 +33,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
@ -29,6 +29,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
@ -93,6 +93,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
@ -160,6 +160,8 @@ fn load() -> Result<Vec<TestDescAndFn>, Error> {
|
||||
name: TestName::DynTestName(name),
|
||||
allow_fail: false,
|
||||
should_panic: ShouldPanic::No,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: TestFn::DynTestFn(Box::new(move || {
|
||||
//
|
||||
|
@ -104,6 +104,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
@ -33,6 +33,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
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
|
||||
//! and again.
|
||||
#![feature(bench_black_box)]
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
@ -41,6 +41,8 @@ fn add_test<F: FnOnce() + Send + 'static>(
|
||||
ignore,
|
||||
should_panic: No,
|
||||
allow_fail: false,
|
||||
compile_fail: Default::default(),
|
||||
no_run: Default::default(),
|
||||
},
|
||||
testfn: DynTestFn(Box::new(f)),
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user