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

Conversation

@Aerijo
Copy link

@Aerijo Aerijo commented Dec 13, 2019

Requirements for Contributing a Bug Fix

Identify the Bug

Tests raise fatal error when native code is built and run in debug mode.

Description of the Change

Changes the value casts to be safer. The original Local<Object>::Cast is basically a no-op in release mode, but has an assertion in debug mode (see this). Therefore, when it is running in debug mode and a non-object is passed, it errored. The change moves the cast after checking if it was a string, instead of casting and then checking what it was.

Alternate Designs

na

Possible Drawbacks

na

Verification Process

The tests pass (with both release and debug builds).

Release Notes

  • Reorder JS to native variable type casts

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