mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
11 lines
256 B
JavaScript
11 lines
256 B
JavaScript
var p = new Promise(function(resolve, reject) {
|
|
resolve(5);
|
|
})
|
|
.then(function(num) {
|
|
return num.toFixed();
|
|
})
|
|
.then(function(str) {
|
|
// This should fail because str is string, not number
|
|
return str.toFixed();
|
|
});
|