chore: Publish v1.2.63 & Update rustc (#1894)

This commit is contained in:
강동윤 2021-07-05 21:51:09 +09:00 committed by GitHub
parent 211e208219
commit 35af4c5186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
24 changed files with 34 additions and 7 deletions

View File

@ -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

View File

@ -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'

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)]
extern crate test;

View File

@ -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 {

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)]
extern crate test;

View File

@ -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>>>,
}

View File

@ -69,7 +69,6 @@ where
let ctx = Ctx {
graph,
cycles,
merged: Default::default(),
transitive_remap: Default::default(),
export_stars_in_wrapped: Default::default(),
};

View File

@ -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)),
});

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)]
extern crate test;

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)]
extern crate test;

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)]
extern crate test;

View File

@ -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)),
});

View File

@ -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)),
});

View File

@ -1,3 +1,4 @@
#![feature(bench_black_box)]
#![feature(test)]
extern crate test;

View File

@ -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)]

View File

@ -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)),
});

View File

@ -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)),
});

View File

@ -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)),
});

View File

@ -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 || {
//

View File

@ -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)),
});

View File

@ -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)),
});

View File

@ -1 +1 @@
nightly-2021-04-25
nightly-2021-06-09

View File

@ -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;

View File

@ -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)),
});