Artem S. Povalyukhin
Artem S. Povalyukhin
@xeioex > ```js > NjsBlob > NjsBlob.prototype.arrayBuffer() > NjsBlob.prototype.text() -> convert to UTF8 string() > ``` Maybe is better to use properties instead? ```js NjsBlob NjsBlob.prototype.size NjsBlob.prototype.arrayBuffer NjsBlob.prototype.text -> create/return...
@hongzhidao Hi! > ``` > var promise = new Promise(function(resolve, reject) { > resolve() > }) > > promise.then((v) => { > a() > }) > ``` > > >...
@hongzhidao looks like browser version doesn't throw anything, even`TypeError`s like wrong arguments. In case of error the result will be rejected promise with an exception. ```js ngx.fetch("http://127.0.0.1:8080", { method: "POST",...
> Is this? > > ``` > e.response = rs.body > ``` There `e.response` is just a flag to indicate that we've got a response from server. It may be...
@hongzhidao Yes, I think it would be nice to have some sugar like: ```js r.response({ some: thing }) // == r.response(JSON.stringify({ some: thing }), { status: 200, headers: {'content-type': 'application/json',...
@hongzhidao ES5 has one execution mode of a file. ES6 has two: - script mode (like in ES5) - module mode (new). The second one was introduced to support `import`/`export`...
@hongzhidao Didn't get it. ```js $ head main.js one.js two.js ==> main.js one.js two.js
@hongzhidao @xeioex Some thoughts: - `import/export` stuff should be disabled when `-t script`. Otherwise there is no chance to evolve it to support all the features. Not sure, but we'll...
there is a regression in 0.6+: ```shell $ cat idx.js import tropical from './mod.js'; $ cat mod.js export default function tropical() { } console.log(typeof tropical); // will cause SEGV $...
Hi @nettnikl ```nginx js_var $testlog; log_format testlog escape=none '$remote_addr - $remote_user [$time_local] "$request" ' '$status $testlog; server { listen 8888; location /test { js_content test.testlog; } access_log /var/log/nginx/access.log testlog; }...