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

Commit

Permalink
test: disable test case for node-chakracore and fix a couple lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
boingoing authored and kfarnung committed Jan 11, 2018
1 parent 53cfc2c commit b2a4b8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/node_api_jsrt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -907,11 +907,11 @@ napi_status napi_define_properties(napi_env env,
const napi_property_descriptor* properties) {
JsPropertyIdRef configurableProperty;
CHECK_JSRT(JsCreatePropertyId(STR_AND_LENGTH("configurable"),
&configurableProperty));
&configurableProperty));

JsPropertyIdRef enumerableProperty;
CHECK_JSRT(JsCreatePropertyId(STR_AND_LENGTH("enumerable"),
&enumerableProperty));
&enumerableProperty));

for (size_t i = 0; i < property_count; i++) {
const napi_property_descriptor* p = properties + i;
Expand Down Expand Up @@ -967,7 +967,7 @@ napi_status napi_define_properties(napi_env env,

JsPropertyIdRef writableProperty;
CHECK_JSRT(JsCreatePropertyId(STR_AND_LENGTH("writable"),
&writableProperty));
&writableProperty));
JsValueRef writable;
CHECK_JSRT(JsBoolToBoolean((p->attributes & napi_writable), &writable));
CHECK_JSRT(JsSetProperty(descriptor, writableProperty, writable, true));
Expand Down Expand Up @@ -2065,7 +2065,7 @@ napi_status napi_new_instance(napi_env env,
napi_status napi_make_external(napi_env env, napi_value v, napi_value* result) {
CHECK_ARG(result);
JsValueRef externalObj;
CHECK_JSRT(JsCreateExternalObject(NULL, NULL, &externalObj));
CHECK_JSRT(JsCreateExternalObject(nullptr, nullptr, &externalObj));
CHECK_JSRT(JsSetPrototype(externalObj, reinterpret_cast<JsValueRef>(v)));
*result = reinterpret_cast<napi_value>(externalObj);
return napi_ok;
Expand Down Expand Up @@ -2742,8 +2742,8 @@ class Work: public node::AsyncResource {
JsValueRef exception;
JsPropertyIdRef exProp;

if (JsCreatePropertyId(STR_AND_LENGTH("exception"), &exProp)
!= JsNoError) {
if (JsCreatePropertyId(STR_AND_LENGTH("exception"),
&exProp) != JsNoError) {
Fatal();
return;
}
Expand Down
4 changes: 4 additions & 0 deletions test/parallel/parallel.status
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ test-vm-harmony-symbols : SKIP
test-vm-indexed-properties : SKIP
test-vm-proxies : SKIP

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

[$jsEngine==chakracore && $arch==x64]
# These tests are failing for Node-Chakracore and should eventually be fixed
test-buffer-includes : SKIP
Expand Down

0 comments on commit b2a4b8a

Please sign in to comment.