Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit fb3330b

Browse files
committed
test: disable test case for node-chakracore and fix a couple lint issues
1 parent 40a2c90 commit fb3330b

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ bool s_doTTRecord = false;
127127
bool s_doTTReplay = false;
128128
bool s_doTTDebug = false;
129129
size_t s_ttoptReplayUriLength = 0;
130-
const char* s_ttoptReplayUri = NULL;
130+
const char* s_ttoptReplayUri = nullptr;
131131
uint32_t s_ttdSnapInterval = 2000;
132132
uint32_t s_ttdSnapHistoryLength = 2;
133133
uint64_t s_ttdStartupMode = 0x1;

src/node_api_jsrt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2069,7 +2069,7 @@ napi_status napi_new_instance(napi_env env,
20692069
napi_status napi_make_external(napi_env env, napi_value v, napi_value* result) {
20702070
CHECK_ARG(result);
20712071
JsValueRef externalObj;
2072-
CHECK_JSRT(JsCreateExternalObject(NULL, NULL, &externalObj));
2072+
CHECK_JSRT(JsCreateExternalObject(nullptr, nullptr, &externalObj));
20732073
CHECK_JSRT(JsSetPrototype(externalObj, reinterpret_cast<JsValueRef>(v)));
20742074
*result = reinterpret_cast<napi_value>(externalObj);
20752075
return napi_ok;

test/parallel/parallel.status

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ test-windows-failed-heap-allocation : SKIP
136136
# support is not implemented yet.
137137
test-preload : SKIP
138138

139+
# This test depends on V8 error API for stack traces which is not implemented
140+
# in Node-ChakraCore
141+
test-common-must-not-call : SKIP
139142

140143
[$jsEngine==chakracore && $arch==x64]
141144
# These tests are failing for Node-Chakracore and should eventually be fixed

test/parallel/test-util-inspect.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,8 @@ if (!common.isChakraEngine) {
956956
{
957957
const map = new Map([['foo', 'bar']]);
958958
assert.strictEqual(util.inspect(map.keys()), '[Map Iterator] { \'foo\' }');
959-
assert.strictEqual(util.inspect(map.values()), '[Map Iterator] { \'bar\' }');
959+
assert.strictEqual(util.inspect(map.values()),
960+
'[Map Iterator] { \'bar\' }');
960961
assert.strictEqual(util.inspect(map.entries()),
961962
'[Map Iterator] { [ \'foo\', \'bar\' ] }');
962963
// make sure the iterator doesn't get consumed

0 commit comments

Comments
 (0)