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

Use 'Nan::Set' #135

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

Conversation

abetomo
Copy link
Contributor

@abetomo abetomo commented Jul 11, 2020

Requirements for Contributing a Bug Fix

Identify the Bug

#134

Description of the Change

Since obj->Set is an error, we use Nan::Set.

(#120 also seems to have the same fix in it.)

Alternate Designs

#130 is a similar fix.
I thought it would be better to use Nan::Set.

Possible Drawbacks

Verification Process

I compiled and ran the unit tests.

Release Notes

abetomo added 2 commits July 2, 2021 23:51
Fix the following errors.

```
../src/main.cc:138:25: error: no matching member function for call to 'Set'
      misspelled_range->Set(Nan::New("end").ToLocalChecked(), Nan::New<Integer>(end));
```
The following warning.

```
../src/worker.cc: In member function ‘virtual void
CheckSpellingWorker::HandleOKCallback()’:
../src/worker.cc:44:25: warning: ‘v8::Local<v8::Value>
Nan::Callback::Call(int, v8::Local<v8::Value>*) const’ is deprecated
[-Wdeprecated-declarations]
   callback->Call(2, argv);
```
@abetomo abetomo force-pushed the feature/fix_compile_errors branch from 298cc77 to d1fcd7f Compare July 2, 2021 14:53
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.

1 participant