async method fix

This commit is contained in:
Dan Onoshko 2015-01-02 00:12:50 +07:00
parent 5c9e1fd088
commit 8037da356a
2 changed files with 2 additions and 6 deletions

View File

@ -435,7 +435,7 @@ Future plans
class A { class A {
int a = 123; int a = 123;
readonly String about = "class"; String about = "class";
$("button").click(() => console.log("Button Clicked!")); $("button").click(() => console.log("Button Clicked!"));
@ -459,7 +459,7 @@ Future plans
about = "ups!"; about = "ups!";
} }
get some => "some " + about; get some() => "some " + about;
set some(val) => about += val; set some(val) => about += val;
} }
@ -473,8 +473,6 @@ Future plans
alert(some); alert(some);
} }
int operator[](int index) => index + 584;
operator[]=(int index, int val) => x = index + val;
} }

View File

@ -482,8 +482,6 @@ Cola.DefFunWithMods = function(func, mods){
}); });
} }
if (mods.indexOf("async") != -1) func = Cola.FuncAsync(func);
var sname = func.name, dp = { properties : [ var sname = func.name, dp = { properties : [
new Cola.AST_ObjectKeyVal({ new Cola.AST_ObjectKeyVal({
key : (function(node){ key : (function(node){