Commit 728bf692 by kzc

fix emitting undefined instead of Object.assign in JSXOpeningElement (#163)

parent 8eda7aec
......@@ -56,7 +56,7 @@ export default class JSXOpeningElement extends Node {
if (!this.program.options.objectAssign) {
throw new CompileError( this, 'Mixed JSX attributes ending in spread requires specified objectAssign option with \'Object.assign\' or polyfill helper.' );
}
before = html ? `', ${this.program.options.objectAssign}({},` : `, ${this.program.objectAssign}({},`;
before = html ? `', ${this.program.options.objectAssign}({},` : `, ${this.program.options.objectAssign}({},`;
after = ')';
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment