Arrow functions bug-fix
This commit is contained in:
parent
bd86f0d5ce
commit
8d600533ac
|
|
@ -360,6 +360,7 @@ As you see, you can use keyword `when`, it's like `case`, but if the condition i
|
|||
Future plans
|
||||
===
|
||||
- Use inline `isset` expression instead function. status: done
|
||||
- Use inline `is`.
|
||||
- `some is NaN` to `isNaN(some)` status: done
|
||||
- operator `?` instead `isset`, fix the operator with function call
|
||||
- operator `?.`
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1356,7 +1356,7 @@ Cola.Parser.prototype.function_ = function(ctor, type) {
|
|||
? (_this.next(), [new Cola.AST_Return({
|
||||
start: new Cola.AST_Token({ nlb : false, type : 'keyword', value : 'return' }),
|
||||
value: (function(){
|
||||
tmp = _this.expression(true);
|
||||
tmp = _this.expression(ctor === Cola.AST_Defun);
|
||||
if ( ctor === Cola.AST_Defun ) {
|
||||
_this.semicolon();
|
||||
//_this.next();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"description": "ColaScript translator / parser / mangler / compressor / beautifier toolkit",
|
||||
"homepage": "https://github.com/TrigenSoftware/ColaScript",
|
||||
"main": "tools/node.js",
|
||||
"version": "0.5.81",
|
||||
"version": "0.5.83",
|
||||
"engines": { "node" : ">=0.4.0" },
|
||||
"maintainers": [{
|
||||
"name": "Dan Onoshko (dangreen)",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user