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

fix: generify check for “native code” #14

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

Conversation

kdubb
Copy link

@kdubb kdubb commented Jul 23, 2020

The checks for native code using endsWith(‘{ [native code] }’) do not work in Safari when code is packaged using webpack because Safari includs newlines in its native code output.

All native code checks have been centralized to a isNativeCode function exported from util and the check now uses a regex that allows for any type of white space.

Connection with issue(s)

Resolve issue #13

Testing and Review Notes

As stated in issue, the problem is only exhibited when using Safari JS engine and the code using jackson-js is packaged using webpack.

To Do

N/A

The checks for native code using `endsWith(‘{ [native code] }’)` do not work in Safari when code is packaged using webpack because Safari includs newlines in its native code output.

All native code checks have been centralized to a `isNativeCode` function exported from util and the check now uses a regex that allows for any type of white space.
@kdubb
Copy link
Author

kdubb commented Sep 14, 2020

@pichillilorenzo Any chance this can be merged?

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.

None yet

1 participant