add traceur test suite
This commit is contained in:
18
test/fixtures/traceur/AsyncFunctions/AsyncSyntax.js
vendored
Normal file
18
test/fixtures/traceur/AsyncFunctions/AsyncSyntax.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Options: --async-functions
|
||||
|
||||
var async;
|
||||
async
|
||||
function f() {
|
||||
return async + async;
|
||||
}
|
||||
|
||||
async = 1;
|
||||
assert.equal(async, 1);
|
||||
assert.equal(f(), 2);
|
||||
|
||||
async = async
|
||||
function g() {
|
||||
|
||||
}
|
||||
|
||||
assert.equal(async, 1);
|
||||
Reference in New Issue
Block a user