Skip to content

Commit f9dc55d

Browse files
committed
downgrade a few XXX, add a few genuine FIXMEs
1 parent bacc96e commit f9dc55d

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

examples/eventloop/ecma_eventloop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ EventLoop.run = function() {
290290
if (cb) {
291291
data = Socket.read(fd); // no size control now
292292
//print('READ', Duktape.enc('jsonx', data));
293-
if (String(data) === '') {
293+
if (String(data) === '') { // FIXME
294294
//print('zero read for fd ' + fd + ', closing forcibly');
295295
rc = Socket.close(fd); // ignore result
296296
delete this.socketListening[fd];

examples/eventloop/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ static void set_sigint_handler(void) {
3636
/* Print error to stderr and pop error. */
3737
static void print_error(duk_context *ctx, FILE *f) {
3838
if (duk_is_object(ctx, -1) && duk_has_prop_string(ctx, -1, "stack")) {
39-
/* FIXME: print error objects specially */
40-
/* FIXME: pcall the string coercion */
39+
/* XXX: print error objects specially */
40+
/* XXX: pcall the string coercion */
4141
duk_get_prop_string(ctx, -1, "stack");
4242
if (duk_is_string(ctx, -1)) {
4343
fprintf(f, "%s\n", duk_get_string(ctx, -1));

examples/eventloop/poll.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ static int poll_poll(duk_context *ctx) {
6161
/* update revents */
6262

6363
if (fds[i].revents) {
64-
/* FIXME: need an duk_array_push */
6564
duk_push_int(ctx, fds[i].fd); /* -> [... retarr fd] */
6665
duk_put_prop_index(ctx, -2, nchanged);
6766
nchanged++;

examples/eventloop/server-socket-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ print('listen on ' + HOST + ':' + PORT);
1313
EventLoop.server(HOST, PORT, function (fd, addr, port) {
1414
print('new connection on fd ' + fd + ' from ' + addr + ':' + port);
1515
EventLoop.setReader(fd, function (fd, data) {
16+
// FIXME: uppercase as bytes, no decode errors
1617
print('read data on fd ' + fd + ', length ' + data.length);
1718
EventLoop.write(fd, String(data).toUpperCase());
1819
});

0 commit comments

Comments
 (0)