@anonymous/

ImmenseDarkslategreyAnkole

ES6

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7130411499228746","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"InVzZSBzdHJpY3QiOw0KDQpmdW5jdGlvbiBwcm9taXNlU3FydCh2YWx1ZSl7DQogICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uIChmdWxmaWxsLCByZWplY3Qpew0KICAgICAgICBjb25zb2xlLmxvZygnU1RBUlQgZXhlY3V0aW9uIHdpdGggdmFsdWUgPScsIHZhbHVlKTsNCiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHsNCiAgICAgICAgICAgIGZ1bGZpbGwoeyB2YWx1ZTogdmFsdWUsIHJlc3VsdDogdmFsdWUgKiB2YWx1ZSB9KTsNCiAgICAgICAgfSwgMCB8IE1hdGgucmFuZG9tKCkgKiAxMDApOw0KICAgIH0pOw0KfQ0KDQooYXN5bmMgZnVuY3Rpb24gKCkgew0KICAgIHZhciBvYmogPSBhd2FpdCBwcm9taXNlU3FydCgwKTsNCiAgICBjb25zb2xlLmxvZygnRU5EIGV4ZWN1dGlvbiB3aXRoIHZhbHVlID0nLCBvYmoudmFsdWUsICdhbmQgcmVzdWx0ID0nLCBvYmoucmVzdWx0KTsNCiAgICBvYmogPSBhd2FpdCBwcm9taXNlU3FydCgxKTsNCiAgICBjb25zb2xlLmxvZygnRU5EIGV4ZWN1dGlvbiB3aXRoIHZhbHVlID0nLCBvYmoudmFsdWUsICdhbmQgcmVzdWx0ID0nLCBvYmoucmVzdWx0KTsNCiAgICBvYmogPSBhd2FpdCBwcm9taXNlU3FydCgyKTsNCiAgICBjb25zb2xlLmxvZygnRU5EIGV4ZWN1dGlvbiB3aXRoIHZhbHVlID0nLCBvYmoudmFsdWUsICdhbmQgcmVzdWx0ID0nLCBvYmoucmVzdWx0KTsNCiAgICBvYmogPSBhd2FpdCBwcm9taXNlU3FydCgzK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SBhd2FpdCBwcm9taXNlU3FydCgxMCk7DQogICAgY29uc29sZS5sb2coJ0VORCBleGVjdXRpb24gd2l0aCB2YWx1ZSA9Jywgb2JqLnZhbHVlLCAnYW5kIHJlc3VsdCA9Jywgb2JqLnJlc3VsdCk7DQp9KSgpOw=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"use strict";

function promiseSqrt(value){
    return new Promise(function (fulfill, reject){
        console.log('START execution with value =', value);
        setTimeout(function() {
            fulfill({ value: value, result: value * value });
        }, 0 | Math.random() * 100);
    });
}

(async function () {
    var obj = await promiseSqrt(0);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(1);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(2);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(3);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(4);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(5);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(6);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(7);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(8);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(9);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
    obj = await promiseSqrt(10);
    console.log('END execution with value =', obj.value, 'and result =', obj.result);
})();
Babel Compiler v6.4.4 Copyright (c) 2014-2015 Sebastian McKenzie