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

(v0.5 backport) src,build: improve the native module subsystem #110

Closed
wants to merge 2 commits into from

Conversation

aqrln
Copy link
Member

@aqrln aqrln commented Apr 2, 2017

  • Split jsrs-impl.cc into separate modules.
  • Make some refactoring.
  • Rename the native addon to jstp since there already is a function
    that is not a part of JSRS.
  • Fix binding.gyp: make cflags not ignored on macOS (as it appeared
    they used to be) and do not use -O3 in Debug configuration.
  • Use a macro to throw V8 exceptions to avoid boilerplate code.

Backport-of: #36

@belochub
Copy link
Member

belochub commented Apr 2, 2017

@aqrln, why didn't you delete jsrs-impl.cc like you did in original PR?

@aqrln
Copy link
Member Author

aqrln commented Apr 2, 2017

@belochub whoops, looks like I messed up the conflict resolution a bit. Thanks for catching that!

aqrln and others added 2 commits April 2, 2017 17:03
* Split `jsrs-impl.cc` into separate modules.
* Make some refactoring.
* Rename the native addon to `jstp` since there already is a function
  that is not a part of JSRS.
* Fix `binding.gyp`: make `cflags` not ignored on macOS (as it appeared
  they used to be) and do not use `-O3` in Debug configuration.
* Use a macro to throw V8 exceptions to avoid boilerplate code.

Backport-of: #36
Fix compilation error caused by missing `<cstddef>` header
needed for `std::size_t` type.

PR-URL: #64
@aqrln aqrln force-pushed the v0.5-backport-pr36 branch from 98c13ce to 890a047 Compare April 2, 2017 14:06
@aqrln
Copy link
Member Author

aqrln commented Apr 2, 2017

@belochub I have removed the obsolete file. A new commit that fixed the build is now is this PR too, so the CI is passing. Can you please take at look?

Copy link
Member

@belochub belochub left a comment

Choose a reason for hiding this comment

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

LGTM

aqrln added a commit that referenced this pull request Apr 2, 2017
* Split `jsrs-impl.cc` into separate modules.
* Make some refactoring.
* Rename the native addon to `jstp` since there already is a function
  that is not a part of JSRS.
* Fix `binding.gyp`: make `cflags` not ignored on macOS (as it appeared
  they used to be) and do not use `-O3` in Debug configuration.
* Use a macro to throw V8 exceptions to avoid boilerplate code.

Backport-of: #36
PR-URL: #110
@aqrln
Copy link
Member Author

aqrln commented Apr 2, 2017

Landed in 0d7b66b and 64aae38.

@aqrln aqrln closed this Apr 2, 2017
@aqrln aqrln deleted the v0.5-backport-pr36 branch April 2, 2017 14:37
aqrln added a commit that referenced this pull request Apr 2, 2017
* Split `jsrs-impl.cc` into separate modules.
* Make some refactoring.
* Rename the native addon to `jstp` since there already is a function
  that is not a part of JSRS.
* Fix `binding.gyp`: make `cflags` not ignored on macOS (as it appeared
  they used to be) and do not use `-O3` in Debug configuration.
* Use a macro to throw V8 exceptions to avoid boilerplate code.

Backport-of: #36
PR-URL: #110
aqrln added a commit that referenced this pull request Apr 3, 2017
* Split `jsrs-impl.cc` into separate modules.
* Make some refactoring.
* Rename the native addon to `jstp` since there already is a function
  that is not a part of JSRS.
* Fix `binding.gyp`: make `cflags` not ignored on macOS (as it appeared
  they used to be) and do not use `-O3` in Debug configuration.
* Use a macro to throw V8 exceptions to avoid boilerplate code.

Backport-of: #36
PR-URL: #110
@aqrln aqrln mentioned this pull request Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants