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

wasm: use values extracted from Emscripten metadata.#29

Merged
PiotrSikora merged 4 commits intoenvoyproxy:masterfrom
PiotrSikora:wasm-emscripten_metadata
Jun 4, 2019
Merged

wasm: use values extracted from Emscripten metadata.#29
PiotrSikora merged 4 commits intoenvoyproxy:masterfrom
PiotrSikora:wasm-emscripten_metadata

Conversation

@PiotrSikora
Copy link
Copy Markdown
Contributor

@PiotrSikora PiotrSikora commented May 31, 2019

This allows us to use more recent versions of Emscripten.

Fixes #32.

Signed-off-by: Piotr Sikora piotrsikora@google.com

This allows us to use more recent versions of Emscripten.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
@PiotrSikora PiotrSikora requested a review from jplevyak May 31, 2019 04:03
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
#define _REGISTER(_fn) _REGISTER_ABI(_fn, )

if (is_emscripten_) {
if (emscripten_abi_major_version_ > 0 || emscripten_abi_minor_version_ > 1) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do you want to check the precise version and then fail to load the module if it isn't one of the know versions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't, because then we'd stop loading working WASM modules (e.g. neither change to ABI 0.1 nor 0.3 required any changes in Envoy-WASM)... unless you feel strongly about it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm OK with it this way.

@PiotrSikora PiotrSikora merged commit 3bcb179 into envoyproxy:master Jun 4, 2019
yxue pushed a commit to yxue/envoy-wasm that referenced this pull request Oct 8, 2019
…roxy#29)

* Add Exception handling and test for divide by zero exception.
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.

Compile with protobuf full does not work with V8

2 participants