Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Duktape 2.5.0 #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

wyozi
Copy link
Collaborator

@wyozi wyozi commented Jul 31, 2020

I upgraded Duktape to 2.5.0 to see if it would fix a SIGSEGV: invalid memory reference (spoiler: it didn't)

But maybe Duktape can be upgraded anyway, unless there is some reason not to? I downloaded duktape-2.5.0.tar.xz from https://duktape.org/download.html and replaced existing files. All tests seem to pass ok.

I also added instructions for future Duktape upgrades and note about ffi-gen workaround I had to do to get it to compile on OS X.

Btw I didn't see anything too impactful in Duktape changelogs, but Add "globalThis" binding, enabled by default. This replaces the previous "global" binding (which was disabled by default) to match the revised "global" specification. in 2.5 might be a breaking change? It could be disabled by default, although I would be happy to have it on by default.

pub const DUK_GIT_COMMIT: &'static [u8; 41usize] = b"6001888049cb42656f8649db020e804bcdeca6a7\0";
pub const DUK_GIT_DESCRIBE: &'static [u8; 7usize] = b"v2.5.0\0";
pub const DUK_GIT_BRANCH: &'static [u8; 7usize] = b"master\0";
pub const DUK_USE_OS_STRING: &'static [u8; 4usize] = b"osx\0";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's funny that these (+ int MIN/MAX constants below) leak here, but I reckon it's not too harmful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant