Skip to content

Instantly share code, notes, and snippets.

View xeioex's full-sized avatar

Dmitry Volyntsev xeioex

View GitHub Profile
/*
* tcpclient.c - A simple TCP client
* usage: tcpclient <host> <port>
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
git clone https://github.com/test262-utils/test262-harness-py
cd test262-harness-py
git checkout 0f2acdd882c84cff43b9d60df7574a1901e2cdcd
git clone https://github.com/tc39/test262
patch -p1 < test262.patch (https://gist.github.com/xeioex/0ad564ce405b6c78883583e04d569885)
python ./src/test262.py --command='<full path to njs cli binary> -q' --tests=./test262/ --strict_only
diff --git a/src/test262.py b/src/test262.py
index c92e5bf..a6247f5 100755
--- a/src/test262.py
+++ b/src/test262.py
@@ -302,7 +302,6 @@ class TestCase(object):
return self.test
source = self.suite.GetInclude("sta.js") + \
- self.suite.GetInclude("cth.js") + \
self.suite.GetInclude("assert.js")
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1536843137 -10800
# Thu Sep 13 15:52:17 2018 +0300
# Node ID a92ae4986bc04c512d180b3e7748027514ce729a
# Parent c2cddf3b97b7874bccf569ea08731120fdf82199
Introduced sandboxing mode.
Thanks to David CARLIER.
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1536859188 -10800
# Thu Sep 13 20:19:48 2018 +0300
# Node ID ebc9a6f65579c68976a54f88bdeff1248e1d0be8
# Parent c4f9a49486979285b6b508109d4988b4bc30d35d
Fixed Array.prototype.length setter.
diff --git a/njs/njs_array.c b/njs/njs_array.c
--- a/njs/njs_array.c
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1537377855 -10800
# Wed Sep 19 20:24:15 2018 +0300
# Node ID 4827591adef5e0ec1d238b0d5bffab5359013b5c
# Parent 4a160b7b58bd2badc597c92c261ceae74b76ecff
Object property quering is refactored.
njs_property_query() is rectified and unified
1) returns only property descriptors. Special return codes
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1537376128 -10800
# Wed Sep 19 19:55:28 2018 +0300
# Node ID 4a160b7b58bd2badc597c92c261ceae74b76ecff
# Parent 68a3580688ab3a5dcd1d02a52f13c2e6532a58ff
Fixed http response and parent getters.
Getters are expected to set resulting value to the provided
argument, not to vm->retval.
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1544204674 -10800
# Fri Dec 07 20:44:34 2018 +0300
# Node ID 6b84f91045f6c35810ff619c2434e8e7ffa9d3da
# Parent 0709c3d38212df011229fccb2e7a9e7f23263cce
Fixed handling of immediate posted events.
diff --git a/njs/njs.c b/njs/njs.c
--- a/njs/njs.c
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1544527173 -10800
# Tue Dec 11 14:19:33 2018 +0300
# Node ID 14801762b1eb5199453acc3c774b98ace7f9abb5
# Parent 0709c3d38212df011229fccb2e7a9e7f23263cce
Added setImmediate().
This closes #66 issue on Github.
# HG changeset patch
# User Dmitry Volyntsev <[email protected]>
# Date 1545917349 -10800
# Thu Dec 27 16:29:09 2018 +0300
# Node ID 651dec636dbf55ab7883eda05f7a77615bb7e581
# Parent a711ef15fe0cda47516a48a45ec3b79c9eabac16
Interactive shell: immediate events support.
This closes #66 issue on Github.