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

Commit

Permalink
fixing node-chakracore after taking integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Kaufman committed Mar 28, 2018
1 parent fc85d8c commit da6018d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/internal/bootstrap/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,22 @@
// This file contains the V8-specific "%<function>" syntax for accessing
// private functions. This is not supported on ChakraCore and causes a
// parser failure. Inject a cache entry to prevent the file from being
// parsed. Return an array to mimic behavior (required by util.inspect)
// parsed. Return an array to mimic behavior (required by util.inspect).
//
// TODO: below methods need to be implemented to return correct values!
NativeModule._cache['internal/v8'] = {
loaded: true,
exports: {
previewMapIterator: function() { return []; },
previewSetIterator: function() { return []; },
previewWeakMap: function() { return []; },
previewWeakSet: function() { return []; }
},
};
}



setupV8();
setupProcessICUVersions();

Expand Down

0 comments on commit da6018d

Please sign in to comment.