Skip to content

Using error variable name while using destructuring object as paramater with default value #1008

Description

@NextSeason

main.js

import { ajax } from './http.js';
class Test {
    constructor() {
        this.ajax = false;
    }
    volumn( { ajax = true } ) {
        this.ajax = ajax;   
    }
}

export default Test;

http.js

export var ajax = ( init ) => {
    console.log( init );
};

output.js

define(function () { 'use strict';

class Test {
    constructor() {
        this.ajax = false;
    }
    volumn( { ajax = true } ) {
        this.ajax = ajax$$1;    
    }
}

return Test;

});

I think it should not use 'ajax$$1' in method volumn.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions