Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
consider modules 59 as node9
Browse files Browse the repository at this point in the history
  • Loading branch information
igorklopov committed Nov 2, 2017
1 parent c08b331 commit 12bf8df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function abiToNodeRange (abi) {
if (/^m?48/.test(abi)) return 'node6';
if (/^m?51/.test(abi)) return 'node7';
if (/^m?57/.test(abi)) return 'node8';
if (/^m?59/.test(abi)) return 'node9';
return abi;
}

Expand Down
5 changes: 4 additions & 1 deletion lib/verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ const script = `
} else {
kCpuFeaturesOffset = 0x10;
}
} else
if (modules === 59) {
kCpuFeaturesOffset = 0x0c;
} else {
assert(false, modules);
}
Expand All @@ -45,7 +48,7 @@ const script = `
if (modules === 14) {
} else
if (modules === 46 || modules === 48 ||
modules === 51 || modules === 57) {
modules === 51 || modules === 57 || modules === 59) {
var paddedPayloadOffset = 0x48; // see SerializedCodeData::Payload()
var index = paddedPayloadOffset + 10;
cd[index] ^= 0xf0;
Expand Down

0 comments on commit 12bf8df

Please sign in to comment.