Skip to content

Commit 1357407

Browse files
committed
Replace spread operator
1 parent 3306773 commit 1357407

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

dist/easycoder.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7041,7 +7041,7 @@ const EasyCoder_Rest = {
70417041
if (url[0] == `/`) {
70427042
path = url.substr(1);
70437043
} else {
7044-
path = `${window.location.origin}${rest}/${url}`;
7044+
path = `${rest}/${url}`;
70457045
}
70467046
}
70477047

@@ -7187,10 +7187,7 @@ const EasyCoder_Condition = {
71877187
const domain = compiler.domain[domainName];
71887188
const code = domain.condition.compile(compiler);
71897189
if (code) {
7190-
return {
7191-
domain: name,
7192-
...code
7193-
};
7190+
return code;
71947191
}
71957192
compiler.rewind();
71967193
}
@@ -7748,11 +7745,8 @@ const EasyCoder_Compiler = {
77487745
},
77497746

77507747
addCommand: function(item) {
7751-
const pc = this.program.length;
7752-
this.program.push({
7753-
pc,
7754-
...item
7755-
});
7748+
item.pc = this.program.length;
7749+
this.program.push(item);
77567750
},
77577751

77587752
addSymbol: function(name, pc) {

0 commit comments

Comments
 (0)