Emit trap info & disable multivalue

This commit is contained in:
losfair
2020-05-08 01:53:18 +08:00
parent 4ab9464cd8
commit 8d0ed702ae
2 changed files with 21 additions and 5 deletions

View File

@@ -28,7 +28,10 @@ pub struct SinglepassConfig {
impl SinglepassConfig {
/// Creates a new configuration object with the default configuration
/// specified.
pub fn new(features: Features, target: Target) -> Self {
pub fn new(mut features: Features, target: Target) -> Self {
// Override the default multi-value switch
features.multi_value = false;
Self {
enable_nan_canonicalization: true,
enable_stack_check: false,