Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Fix type conversion build error on node 13 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benbucksch
Copy link

On node 13.2.0, the build failed with:
porcupine.cc:131:59: error: conversion from ‘Nan:imp:ValueFactoryBase::return>
on line
v8::Maybe<double> sensitivityVal = Nan::To<double>(Nan::Get(keywordObject, sensitivityKeyStr).ToLocalChecked());
This fixes the build error.

Fixes #4

On node 13.2.0, the build failed with:
  porcupine.cc:131:59: error: conversion from ‘Nan:imp:ValueFactoryBase::return>
This fixes the build error.
@benbucksch
Copy link
Author

@alexmoon : Could you please merge this, and make an npm release?

Without this change, the npm module is unusable, see #4.

@benbucksch
Copy link
Author

@alexmoon : Could you please merge this? People are running into this, see #4.

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

Successfully merging this pull request may close these issues.

Build fails with: conversion from Nan::Maybe<double> to v8::Maybe<double>
1 participant