Skip to content

Dev #48

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 21, 2020
Merged

Dev #48

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Replace spread operator
  • Loading branch information
graham-trott committed Apr 19, 2020
commit 1357407ab9c264455589bb258b6fdd15e254e4e1
14 changes: 4 additions & 10 deletions dist/easycoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -7041,7 +7041,7 @@ const EasyCoder_Rest = {
if (url[0] == `/`) {
path = url.substr(1);
} else {
path = `${window.location.origin}${rest}/${url}`;
path = `${rest}/${url}`;
}
}

Expand Down Expand Up @@ -7187,10 +7187,7 @@ const EasyCoder_Condition = {
const domain = compiler.domain[domainName];
const code = domain.condition.compile(compiler);
if (code) {
return {
domain: name,
...code
};
return code;
}
compiler.rewind();
}
Expand Down Expand Up @@ -7748,11 +7745,8 @@ const EasyCoder_Compiler = {
},

addCommand: function(item) {
const pc = this.program.length;
this.program.push({
pc,
...item
});
item.pc = this.program.length;
this.program.push(item);
},

addSymbol: function(name, pc) {
Expand Down