4 -> 2 spaces tab size
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
let TestClass = {
|
||||
name: "John Doe",
|
||||
name: "John Doe",
|
||||
|
||||
testMethodFailure()
|
||||
{
|
||||
return new Promise(async (resolve) => {
|
||||
console.log(this);
|
||||
setTimeout(resolve, 1000);
|
||||
});
|
||||
}
|
||||
testMethodFailure() {
|
||||
return new Promise(async (resolve) => {
|
||||
console.log(this);
|
||||
setTimeout(resolve, 1000);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
let TestClass = {
|
||||
name: "John Doe",
|
||||
name: "John Doe",
|
||||
|
||||
testMethodFailure() {
|
||||
return new Promise((() => {
|
||||
var _this = this;
|
||||
testMethodFailure() {
|
||||
return new Promise((() => {
|
||||
var _this = this;
|
||||
|
||||
var ref = babelHelpers.asyncToGenerator(function* (resolve) {
|
||||
console.log(_this);
|
||||
setTimeout(resolve, 1000);
|
||||
});
|
||||
return _x => ref.apply(this, arguments);
|
||||
})());
|
||||
}
|
||||
var ref = babelHelpers.asyncToGenerator(function* (resolve) {
|
||||
console.log(_this);
|
||||
setTimeout(resolve, 1000);
|
||||
});
|
||||
return _x => ref.apply(this, arguments);
|
||||
})());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user